4 ms·
I was curious to read the script but woah, it is over 9000 lines. It probably has a lot of security and convenience functionality. A minimal approach to run g
by mg 5y ago
I was curious to read the script but woah, it is over 9000 lines.
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.
- nextaccountic 5y ago> It probably has a lot of security and convenience functionality. A shell script with 9000 lines probably has a lot of security issues..
- zodiakzz 5y agoI am just in awe. Good Bash code is art to me!
- mviereck 5y agoThe wiki of x11docker describes some short setups without x11docker, too: https://github.com/mviereck/x11docker/wiki/Short-setups-to-provide-X-display-to-container https://github.com/mviereck/x11docker/wiki/Short-setups-to-p...