Pages

Monday, January 20, 2014

Firefox via VNC on Fedora, Using Docker

In just a few simple steps, you can have an instance of Firefox via VNC up and running in a Docker container. Here's how you run it. This was tested on Docker 0.7.2

Grab the dockerfile from either of these locations:

https://github.com/scollier/Fedora-Dockerfiles

or:

https://git.fedorahosted.org/cgit/dockerfiles.git/

Get the version of Docker



# docker version

To build:

Copy the sources down -

# docker build -rm -t /firefox .

To run:

# docker run -d -p 5901:5901 /firefox

Check the that the image launched successfully

# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
b1296df1a4e8 scollier/firefox:latest vncserver -fg 3 seconds ago Up 1 seconds 0.0.0.0:5901->5901/tcp angry_brown


To test -

From the host that is running the container -

# vncviewer localhost:1

That's it.

No comments:

Post a Comment