4 ms·
Is this solution different from just executing this: docker run -it --rm -e DISPLAY --net=host -v $XAUTHORITY:/root/.Xauthority -v /tmp/.X11-unix:/tmp/.X11
by mg 2y ago
Is this solution different from just executing this:
docker run -it --rm -e DISPLAY --net=host -v $XAUTHORITY:/root/.Xauthority -v /tmp/.X11-unix:/tmp/.X11-unix debian:12-slim
And then run the GUI app in the container? For example for Firefox:
apt update
apt install firefox-esr
firefox
That is an approach I sometimes use to try GUI applications in a Docker container.
- dnndndej 2y agoIsn't this working just for X11?
- yjftsjthsd-h 2y agoShould also work with xwayland, but yes.
- ElijahLynn 2y agoThe approach uses Wayland and Pipewire. > When you start a container instance, all you need to do is map the host's Wayland socket and PipeWire socket files into the container, and then set the appropriate environment variables within the container to enable running GUI applications.