Docker:部署chrome-novnc
获取镜像
wget https://raw.githubusercontent.com/NotGlop/docker-drag/master/docker\_pull.py
python3 docker_pull.py nkpro/chrome-novnc@sha256:379ef4901f65495fb200b60fe2f87ba1346ce7df91cbe807365dba57c5dcd8d5
sudo apt install rclone
类似 使用Rclone搭配OneDrive迁移大量数据 的方式,将nkpro_chrome-novnc.tar转移到服务器上
mkdir -p ~/.config/rclone && nano ~/.config/rclone/rclone.conf
rclone copy –ignore-existing –progress –ignore-errors –transfers=1 ./nkpro_chrome-novnc.tar onedrive:tmp
rclone copy –ignore-existing –progress –ignore-errors –transfers=1 onedrive:tmp/nkpro_chrome-novnc.tar .
docker load < nkpro_chrome-novnc.tar
docker images
docker tag ba39b3ae6c10 nkpro/chrome-novnc:latest
启动镜像
1 |
|
mkdir -p ~/zl_liu/chrome-novnc && cd ~/zl_liu/chrome-novnc
nano docker-compose.yml
docker-compose up -d
docker-compose logs
反向代理
npc内网穿透
ngpm反向代理,开启ws支持
默认密码 passwd
修改密码 x11vnc -storepasswd passwd123 /home/user/.vnc/passwd