Skip to content

Instantly share code, notes, and snippets.

@jplloyd
Created August 28, 2019 12:33
Show Gist options
  • Save jplloyd/4b8dea19b4885539fa3bcec74b8ec4d1 to your computer and use it in GitHub Desktop.
Save jplloyd/4b8dea19b4885539fa3bcec74b8ec4d1 to your computer and use it in GitHub Desktop.
Running _trusted_ gui applications in docker images
# This assumes that the image has the necessary dependencies to run the app
# Also make sure to mount the app directory so that it has access to any
# dependencies not otherwise present in the image
docker run --ipc=host --net=host --volume=$HOME/.Xauthority:/root/.Xauthority -e DISPLAY\
--volume=/where/my/app/is:/appdir -e DISPLAY /appdir/app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment