From cb080df55657fed2bb3f23df0c95464dfa2b8d4f Mon Sep 17 00:00:00 2001 From: John Kirkham Date: Wed, 7 Oct 2015 23:34:44 -0400 Subject: [PATCH] README.md: Collapse use cases. Also, show how a container can be started in a manner similar to the way a notebook would be normally. --- README.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index ae712cf4f..fc13b35cd 100644 --- a/README.md +++ b/README.md @@ -18,14 +18,10 @@ Launch with: If you have a [Docker daemon running](https://docs.docker.com/installation/), e.g. reachable on `localhost`, start a container with: - $ docker run -d -p "8888:8888" --name="myproject" jupyter/notebook + $ docker run --rm -itP -v "$(pwd):/notebooks" jupyter/notebook In your browser open the URL `http://localhost:8888/`. - -The image defines a [volume](https://docs.docker.com/userguide/dockervolumes/) for notebook files at `/notebooks`. -You can override it to mount a host path, e.g. the current working directory: - - $ docker run -d -p "8888:8888" -v "$(pwd):/notebooks" --name="myproject" jupyter/notebook +All notebooks from your session will be saved in the current directory. On other platforms without `docker`, this can be started using `docker-machine` by replacing `localhost` with an IP from [`docker-machine ip `](https://docs.docker.com/machine/reference/ip/).