Skip to content

Instantly share code, notes, and snippets.

@gmacario
Last active November 23, 2021 02:40

Revisions

  1. gmacario revised this gist Apr 28, 2014. 1 changed file with 9 additions and 1 deletion.
    10 changes: 9 additions & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -7,4 +7,12 @@ You can run the image like this:

    docker run -p 5900 creack/firefox-vnc x11vnc -forever -usepw -create

    This will create a docker container with vnc running, the password is `1234`
    This will create a docker container with vnc running, the password is `1234`

    Other options to try
    --------------------

    * http://blog.docker.io/2013/07/docker-desktop-your-desktop-over-ssh-running-inside-of-a-docker-container/
    * https://github.com/subuser-security/subuser

    EOF
  2. gmacario revised this gist Apr 28, 2014. 1 changed file with 7 additions and 1 deletion.
    8 changes: 7 additions & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,10 @@
    docker-gui-app
    ==============

    See http://stackoverflow.com/questions/16296753/can-you-run-gui-apps-in-a-docker
    See http://stackoverflow.com/questions/16296753/can-you-run-gui-apps-in-a-docker

    You can run the image like this:

    docker run -p 5900 creack/firefox-vnc x11vnc -forever -usepw -create

    This will create a docker container with vnc running, the password is `1234`
  3. gmacario revised this gist Apr 28, 2014. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -1 +1,4 @@
    docker-gui-app
    ==============

    See http://stackoverflow.com/questions/16296753/can-you-run-gui-apps-in-a-docker
  4. gmacario revised this gist Apr 28, 2014. 2 changed files with 0 additions and 0 deletions.
    File renamed without changes.
    File renamed without changes.
  5. gmacario revised this gist Apr 28, 2014. 3 changed files with 20 additions and 20 deletions.
    1 change: 0 additions & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -1 +0,0 @@
    See http://stackoverflow.com/questions/16296753/can-you-run-gui-apps-in-a-docker
    20 changes: 1 addition & 19 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,19 +1 @@
    # From http://stackoverflow.com/questions/16296753/can-you-run-gui-apps-in-a-docker
    #
    # 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 firefox
    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'
    See http://stackoverflow.com/questions/16296753/can-you-run-gui-apps-in-a-docker
    19 changes: 19 additions & 0 deletions gistfile2.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    # From http://stackoverflow.com/questions/16296753/can-you-run-gui-apps-in-a-docker
    #
    # 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 firefox
    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'
  6. gmacario renamed this gist Apr 28, 2014. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  7. gmacario revised this gist Apr 28, 2014. 3 changed files with 20 additions and 1 deletion.
    19 changes: 19 additions & 0 deletions Dockerfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    # From http://stackoverflow.com/questions/16296753/can-you-run-gui-apps-in-a-docker
    #
    # 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 firefox
    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'
    1 change: 1 addition & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    See http://stackoverflow.com/questions/16296753/can-you-run-gui-apps-in-a-docker
    1 change: 0 additions & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1 +0,0 @@
    * http://stackoverflow.com/questions/16296753/can-you-run-gui-apps-in-a-docker
  8. gmacario revised this gist Apr 28, 2014. 2 changed files with 1 addition and 1 deletion.
    1 change: 1 addition & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    * http://stackoverflow.com/questions/16296753/can-you-run-gui-apps-in-a-docker
    1 change: 0 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1 +0,0 @@
    http://stackoverflow.com/questions/16296753/can-you-run-gui-apps-in-a-docker
  9. gmacario created this gist Apr 28, 2014.
    1 change: 1 addition & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    http://stackoverflow.com/questions/16296753/can-you-run-gui-apps-in-a-docker