Jun 14, 2018

Running firefox inside Fedora docker image

docker run -d -p 5901:5901 -v /etc/machine-id:/etc/machine-id fedora/firefox

Check the that the image launched successfully

$ docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS                    NAMES
33b33d0cb140        fedora/firefox      "vncserver -fg"     13 minutes ago      Up 13 minutes       0.0.0.0:5901->5901/tcp   focused_colden

To test -

From the host that is running the container -

# vncviewer localhost:1