Skip to content

Instantly share code, notes, and snippets.

@gabemarshall
Created July 20, 2015 15:34
Show Gist options
  • Save gabemarshall/235029c868f0d761a44a to your computer and use it in GitHub Desktop.
Save gabemarshall/235029c868f0d761a44a to your computer and use it in GitHub Desktop.
Dockerfile for VNC firefox "sandbox"
# Firefox over VNC
#
# VERSION 0.1
# DOCKER-VERSION 0.2
from ubuntu:12.04
# make sure the package repository is up to date
run echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
run apt-get update
# Install vnc, xvfb in order to create a 'fake' display and firefox
run apt-get install -y x11vnc xvfb
run mkdir /.vnc
# Setup a password
run x11vnc -storepasswd 1234 ~/.vnc/passwd
# Autostart firefox (might not be the best way to do it, but it does the trick)
run bash -c 'echo "firefox" >> /.bashrc'
@charles-fox
Copy link

Not working, dies with
Step 6/7 : RUN x11vnc -storepasswd 1234 ~/.vnc/passwd
---> Running in fbbe7a6ab373
storepasswd: No such file or directory
-storepasswd failed for file: /root/.vnc/passwd
The command '/bin/sh -c x11vnc -storepasswd 1234 ~/.vnc/passwd' returned a non-zero code: 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment