Skip to content

Instantly share code, notes, and snippets.

@kvaps
Created March 23, 2020 13:42
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 kvaps/4879e4566edeb1cb5a2bb1d8424bbb68 to your computer and use it in GitHub Desktop.
Save kvaps/4879e4566edeb1cb5a2bb1d8424bbb68 to your computer and use it in GitHub Desktop.
Run old firefox with jre6 using docker
mkdir -p /tmp/1
cd /tmp/1
cat >Dockerfile <<\EOT
FROM i386/ubuntu:12.04
RUN apt-get update \
&& apt-get install -y firefox=11.0+build1-0ubuntu4 icedtea-6-plugin libstdc++5
EOT
docker build -t firefox-jre .
xhost +local:
docker run -ti \
-e DISPLAY=$DISPLAY -e MOZ_NO_REMOTE=1 \
-v /tmp/.X11-unix:/tmp/.X11-unix -v $PWD:/1/ \
--net=host firefox-jre firefox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment