Last active
June 19, 2019 15:12
-
-
Save ross-newman/8d1b395f6ddd0c4938a32c2e7c342f43 to your computer and use it in GitHub Desktop.
Setting up Docker for Ubuntu X11 applications
This file contains hidden or 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
#!/bin/bash | |
# Example for Precise (Ubuntu 12.04) | |
sudo debootstrap --no-check-gpg precise precise http://archive.ubuntu.com/ | |
tar -C precise -c . | docker import - precise | |
docker run precise cat /etc/lsb-release | |
#docker run -it --env="DISPLAY" --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" precise "bash" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment