Skip to content

Instantly share code, notes, and snippets.

@henriquegogo
Created October 14, 2019 21:07
Show Gist options
  • Save henriquegogo/dc9bf2b9ced07441ad86b20378fbccc8 to your computer and use it in GitHub Desktop.
Save henriquegogo/dc9bf2b9ced07441ad86b20378fbccc8 to your computer and use it in GitHub Desktop.
Docker app
# Create a docker image with env var DISPLAY=:0
# Save this image with docker save > firefox.tar
# Create this shell script in the same folder of firefox.tar
BASEDIR=$(dirname $(readlink -f "$0"))
docker load < $BASEDIR/firefox.tar
docker run --rm --net host -v $BASEDIR:/home/user firefox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment