Coder Social home page Coder Social logo

dockerfile-ubuntu-gnome's Introduction

Ubuntu Desktop (GNOME) Dockerfile

This repository contains the Dockerfile and associated files for setting up a container with Ubuntu, GNOME and TigerVNC for Docker.

  • The VNC Server currently defaults to 1366*768 24bit.

Dependencies

Installation

  1. Install Docker.

    For an Ubuntu 14.04 host the following commands will get you up and running:

    `sudo apt-get -y update && \

    sudo apt-get -y install docker.io && \

    sudo ln -sf /usr/bin/docker.io /usr/local/bin/docker && \

    sudo restart docker.io`

  2. You can then pull the file:

    sudo docker pull cannycomputing/dockerfile-ubuntu-gnome

    Or alternatively build an image from the Dockerfile:

    sudo docker build -t="cannycomputing/dockerfile-ubuntu-gnome" github.com/CannyComputing/Dockerfile-Ubuntu-Gnome

SuperQuick Install

This will get you going superfast - one line! - from a fresh Ubuntu install (rememebr to update the /etc/hosts file to relect your hostname at 127.0.1.1)

sudo apt-get -y update && \
sudo apt-get -y install docker.io && \
sudo ln -sf /usr/bin/docker.io /usr/local/bin/docker && \
sudo restart docker.io && \
sudo docker pull cannycomputing/dockerfile-ubuntu-gnome && \
sudo docker run -it --rm -p 5901:5901 cannycomputing/dockerfile-ubuntu-gnome

Usage

Starting

  • Change the port number to run multiple instances on the same host (remeber to open the ports for tcp ingress)

  • this will run and drop you into a session:

    sudo docker run -it --rm -p 5901:5901 cannycomputing/dockerfile-ubuntu-gnome

  • or for silent running:

    sudo docker run -it -d -p 5901:5901 cannycomputing/dockerfile-ubuntu-gnome

Connecting to instance

  • Connect to vnc://<host>:5901 via your VNC client. currently the password is hardcoded to "acoman"

Notes

  • You can use the following command from within the container to kill the vnc server:

    USER=root vncserver -kill :1

  • Then run the following command from within the container to restart start the vnc server, the flags are optional but pretty self explanatory.

    USER=root vncserver :1 -geometry 1024x768 -depth 24

dockerfile-ubuntu-gnome's People

Contributors

laplague avatar

Watchers

 avatar  avatar

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.