Skip to content

mshingai/docker-gui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Ubuntu Desktop Container

Requirement

  • Docker >= 18.09 (Build kit available)

Build

$ DOCKER_BUILDKIT=1 docker build -f ./Dockerfile --build-arg USER="developer" --build-arg TAG="20.04" -t ubuntudesktop .

TAG is selected from the tags of the official ubuntu image.

Usage

$ xhost +local:
$ docker run --rm -it \
             --name ubuntu-desktop \
             --volume /tmp/.X11-unix/:/tmp/.X11-unix/ \
             --mount type=bind,source=$HOME/.Xauthority/,target=/home/developer/.Xauthority/ \
             --env DISPLAY=$DISPLAY \
             --env MESA_LOADER_DRIVER_OVERRIDE=i965 \
             --net host \
             ubuntudesktop

About

Docker ubuntu-desktop image

Topics

Resources

Stars

Watchers

Forks