Skip to content
special docker container run gui application
2025年3月13日 root

allow xhost

bash
xhost +local:*

run container

bash
sudo docker run -it --name gui_ubuntu --net=host -e DISPLAY -v /tmp/.X11-unix ubuntu:18.04 bash
apt update
apt install -y xauth

run gui application

bash
apt install -y firefox
firefox

Last updated: