拉取镜像
docker pull #your-image-name-here#
运行镜像
docker run -itd --name=#your-container-name-here# --volume #your-shared-directory-here#:/root/trezor-suite -p 5901:5901 #your-image-name-here#
进入镜像环境
docker exec -it #your-container-name-here# /bin/bash
安装xfce
apt install xfce4 xfce4-goodies tightvncserver -y
启动vnc
export USER=root
vncserver
关闭vnc
vncserver -kill :1
修改vnc配置使用xfce4启动
cp ~/.vnc/xstartup ~/.vnc/xstartup.bak
vi ~/.vnc/xstartup
#!/bin/bash
xrdb $HOME/.Xresources
startxfce4 &
给vnc脚本添加执行权限
chmod +x ~/.vnc/xstartup
启动vnc
vncserver