> For the complete documentation index, see [llms.txt](https://kawsing.gitbook.io/opensystem/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kawsing.gitbook.io/opensystem/docker-cong-an-zhuang-dao-ying-yong-ru-men-pian/docker-yuan-duan-zhuo-mian.md).

# x11docker + docker gui 遠端桌面

{% embed url="<https://hant.kutu66.com/GitHub/article_145600>" %}

```
sudo docker run -p 6080:80 -v /dev/shm:/dev/shm dorowu/ubuntu-desktop-lxde-vnc
sudo docker run -p 6080:80 -p 5900:5900 -e VNC_PASSWORD=mypassword -v /dev/shm:/dev/shm dorowu/ubuntu-desktop-lxde-vnc

```

```
sudo vi /etc/X11/Xwrapper.config
----------------------------------
allowed_users=anybody
-----------------------------------
#建立Xerver
xhost +
x11docker --xephyr --showenv
DISPLAY=:102 XAUTHORITY=/home/ubuntu-mate/.cache/x11docker/xonly-77915732765/share/Xauthority.client XSOCKET=/tmp/.X11-unix/X102 XDG_RUNTIME_DIR=/run/user/999
```

xhost local:root

```
docker run --net host -e VNC_PASSWORD=mypassword -e TZ="Asia/Taipei" -e LANG=zh_TW.UTF-8 -v /etc/localtime:/etc/localtime:ro -v /dev/shm:/dev/shm dorowu/ubuntu-desktop-lxde-vnc
```

![](/files/-M1ckFw_LyuZ8RqwT3Na)

![](/files/-M1htU-CginAXa5aMtHb)

![](/files/-M1ckPcTRGqqOo27TYDh)

![](/files/-M1cke_2VztlCPxtYNON)
