Skip to content

Instantly share code, notes, and snippets.

@zehome
Last active December 18, 2018 09:40
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 zehome/4787329b3402b48e7ea2c5c9916d98bc to your computer and use it in GitHub Desktop.
Save zehome/4787329b3402b48e7ea2c5c9916d98bc to your computer and use it in GitHub Desktop.
Run old firefox from docker
outd=$(mktemp -d); echo -e "FROM ubuntu:trusty\nRUN apt-get update && \
apt-get -qqy install firefox icedtea-netx\nRUN adduser --system --shell /bin/bash --uid $UID --disabled-password xuser\nUSER xuser" >$outd/Dockerfile && \
docker build -t oldfirefox $outd && rm $outd/Dockerfile && rm -r $outd && \
docker run -it --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix oldfirefox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment