Skip to content

Instantly share code, notes, and snippets.

@ross-newman
Last active June 19, 2019 15:12
Show Gist options
  • Save ross-newman/8d1b395f6ddd0c4938a32c2e7c342f43 to your computer and use it in GitHub Desktop.
Save ross-newman/8d1b395f6ddd0c4938a32c2e7c342f43 to your computer and use it in GitHub Desktop.
Setting up Docker for Ubuntu X11 applications
#!/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