Adding info how to mount local directory into 'work' directory

This commit is contained in:
Troels Schwarz-Linnet
2017-11-29 22:00:12 +01:00
committed by Peter Parente
parent 8a527c97e9
commit ef4c304544

View File

@@ -14,13 +14,14 @@ If you're familiar with Docker, have it configured, and know exactly what you'd
# -ti: pseudo-TTY+STDIN open.
# -rm: remove the container on exit.
# -p: publish port to the host
docker run -ti --rm -p 8888:8888 jupyter/<your desired stack>:<git-sha-tag>
# And mount current directory into 'work' directory in image
docker run -ti --rm -p 8888:8888 -v "$PWD":/home/jovyan/work jupyter/<your desired stack>:<git-sha-tag>
# Bagkground mode:
# -d: detach, run container in background.
# -P: Publish all exposed ports to random ports
docker run -d -P jupyter/<your desired stack>:<git-sha-tag>
```