Created
August 28, 2019 12:33
-
-
Save jplloyd/4b8dea19b4885539fa3bcec74b8ec4d1 to your computer and use it in GitHub Desktop.
Running _trusted_ gui applications in docker images
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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