by mg · 5y ago · 0 comments
It probably has a lot of security and convenience functionality.
A minimal approach to run graphical applications inside a Docker container is this one-liner:
docker run -it --rm -e DISPLAY --net=host -v $XAUTHORITY:/root/.Xauthority -v /tmp/.X11-unix:/tmp/.X11-unix debian:11-slim
Then inside the container, run:
apt update
apt install firefox-esr
firefox
Now Firefox runs inside the container and you can use it.A shell script with 9000 lines probably has a lot of security issues..