# 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)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kawsing.gitbook.io/opensystem/docker-cong-an-zhuang-dao-ying-yong-ru-men-pian/docker-yuan-duan-zhuo-mian.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
