Skip to content

lqdflying/Dockerfile-Ubuntu-Gnome

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 \
      --cgroupns=host --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

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 93.8%
  • Shell 6.2%