Sign inSign up

openhs/ubuntu-x

By openhs

Updated 8 months ago

Base Ubuntu docker image for X-based GUI applications.

Image
4

10K+

openhs/ubuntu-x repository overview

docker-ubuntu-x

Base Ubuntu docker image for X-based GUI applications.

Usage

Create images for X-based GUI applications using the following template:

Dockerfile:

FROM openhs/ubuntu-x

# put instructions for installing desired GUI application here
# ...

CMD ["/path/to/gui_app"]

Then start the GUI application container like:

$ docker run --rm -e DISPLAY=$DISPLAY [--device /dev/<sound_device> [...]] \
  -v /tmp/.X11-unix:/tmp/.X11-unix -v $XAUTHORITY:/tmp/.host_Xauthority:ro \
  -dti <gui_app_image_name>
  

For example:

$ docker run --name gui_app -e DISPLAY=$DISPLAY --device /dev/snd \
  -v /tmp/.X11-unix:/tmp/.X11-unix -v $XAUTHORITY:/tmp/.host_Xauthority:ro \
  -dti foo/gui_app
  

and run it again like:

$ docker start gui_app

Tag summary

Content type

Image

Digest

sha256:c4c5e651a

Size

67.7 MB

Last updated

8 months ago

docker pull openhs/ubuntu-x