title: Docker:部署chrome-novnc tags: [] id: '2078' categories:
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 ba39b3ae6c
nkpro/chrome-novnc:latest
version: '3.3'
services:
chrome-novnc:
restart: unless-stopped
ports:
- '15980:5980'
volumes:
- '/home/gene/upload:/home/user/upload'
environment:
- RESOLUTION=1280x720x24
image: nkpro/chrome-novnc
command: startVNC -forever
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