mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-15 14:02:58 +00:00
Adding info how to mount local directory into 'work' directory
This commit is contained in:

committed by
Peter Parente

parent
8a527c97e9
commit
ef4c304544
@@ -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>
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user