Coder Social home page Coder Social logo

docker-firefox52's Introduction

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

docker-firefox52's People

Contributors

eriol avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

therevoman zhuth

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.