Skip to content

Instantly share code, notes, and snippets.

@tcurvelo
Created September 19, 2020 21:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tcurvelo/96c5738da84ec7d6467b16578ab9bf3a to your computer and use it in GitHub Desktop.
Save tcurvelo/96c5738da84ec7d6467b16578ab9bf3a to your computer and use it in GitHub Desktop.
Run container with Splash, Jupyter and GUI support
#!/bin/bash
xhost +local:docker
docker run \
-e DISPLAY=unix$DISPLAY \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v $XAUTHORITY:$XAUTHORITY \
-v $(pwd)/notebooks:/notebooks \
-e XAUTHORITY=$XAUTHORITY \
-p 8888:8888 \
--rm \
-it scrapinghub/splash-jupyter --disable-xvfb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment