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
2
3
4
5
6
7
8
9
10
11
12
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支持

  • 访问  https://limour.top/vnc.html 

  • 默认密码 passwd

  • 修改密码 x11vnc -storepasswd passwd123 /home/user/.vnc/passwd


Docker:部署chrome-novnc
https://occdn.limour.top/2462.html
Author
Limour
Posted on
November 12, 2022
Licensed under