davidbullado / Dockerfile-Ubuntu-Gnome

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ubuntu Desktop (GNOME 3) Dockerfile

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

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

Dependencies

Usage

Container actions

  • Start container:

    sudo docker run --name=ubuntu-gnome -d --rm \
      --tmpfs /run --tmpfs /run/lock --tmpfs /tmp \
      --cap-add SYS_BOOT --cap-add SYS_ADMIN \
      -v /sys/fs/cgroup:/sys/fs/cgroup \
      -p 5901:5901 -p 6901:6901 \
      darkdragon001/ubuntu-gnome-vnc
    
  • Open (root) shell:

    sudo docker exec -it ubuntu-gnome bash
    
  • Open shell as user:

    sudo docker exec -it -u default ubuntu-gnome bash
    
  • Stop container:

    sudo docker stop ubuntu-gnome
    

Connecting to instance

  • Connect to vnc://<host>:5901 via your VNC client.
  • Connect to http://<host>:6901 via your web browser.

NOTE The password is hardcoded to acoman.

Using the desktop

  • Gain root access via sudo

Known issues

  • Sidebar/dock hidden by default
  • User switching / gdm3 not working

Not tested

  • Sound (PulseAudio)

About

License:MIT License


Languages

Language:Dockerfile 93.1%Language:Shell 6.9%