1
0
Fork 0
Go to file
Daniele Tricoli 7a2eab02ec Add a section for podman 2020-12-18 01:17:47 +01:00
Dockerfile Initial import 2018-06-11 00:37:01 +02:00
LICENSE Add license 2018-06-14 00:49:12 +02:00
README.md Add a section for podman 2020-12-18 01:17:47 +01:00

README.md

docker-firefox52

Docker image with Firefox 52 and Java plugin.

This image is base on debian:stretch-slim and just install the packaged Firefox and icedtea-plugin from official Debian repository.

Please note that Firefox 52 ESR reached EOL on 05/09/2018.

Build

docker build -t 'yourusername/firefox52' .

Run

Run using docker

If you don't want any persistency, and you want to use the automated build from docker hub:

docker run -d \
    --shm-size 2g \
    --net host \
    --cpuset-cpus 0 \
    -v /etc/localtime:/etc/localtime:ro \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -e "DISPLAY=${DISPLAY}" \
    -e GDK_SCALE -e GDK_DPI_SCALE \
    --device /dev/dri \
    --name firefox52 \
    eriol/firefox52

otherwise remember to mount volumes for directories needed by Firefox.

If you get an error like the following:

Gdk-ERROR **: The program 'firefox' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadValue (integer parameter out of range for operation)'.
  (Details: serial 335 error_code 2 request_code 130 (unknown) minor_code 3)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the GDK_SYNCHRONIZE environment
   variable to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

disable IPC namespacing (keep in mind that this degrades container isolation) using --ipc=host:

docker run -d \
    --shm-size 2g \
    --net host \
    --ipc=host \
    --cpuset-cpus 0 \
    -v /etc/localtime:/etc/localtime:ro \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -e "DISPLAY=${DISPLAY}" \
    -e GDK_SCALE -e GDK_DPI_SCALE \
    --device /dev/dri \
    --name firefox52 \
    eriol/firefox52

Run using podman

podman run -d \
    --net host \
    -v /etc/localtime:/etc/localtime:ro \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -e "DISPLAY=${DISPLAY}" \
    -e GDK_SCALE -e GDK_DPI_SCALE \
    --device /dev/dri \
    --name firefox52 \
    docker.io/eriol/firefox52