Skip to content

Instantly share code, notes, and snippets.

@jrichardsz
Last active December 5, 2022 00:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrichardsz/206cb91d6cf0753de81b43113448e8c0 to your computer and use it in GitHub Desktop.
Save jrichardsz/206cb91d6cf0753de81b43113448e8c0 to your computer and use it in GitHub Desktop.
docker for ui apps

host

xhost +
docker run \
    --rm \
    -it \
    --privileged \
    --env DISPLAY=unix$DISPLAY \
    -v $XAUTH:/root/.Xauthority \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    python:latest bash    

container

curl https://ftp.mozilla.org/pub/firefox/releases/61.0/linux-x86_64/en-US/firefox-61.0.tar.bz2 -o firefox-61.0.tar.bz2
tar xvf firefox-61.0.tar.bz2
apt-get update && apt-get install -y wget bzip2 libxtst6 libgtk-3-0 libx11-xcb-dev libdbus-glib-1-2 libxt6 libpci-dev
cd firefox
./firefox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment