jupyter/base-notebook
jupyter/minimal-notebook
jupyter/scipy-notebook
jupyter/tensorflow-notebook
docker run -p 8888:8888 jupyter/tensorflow-notebook
If you see the output as follows, the installation has been successfully completed.
[I 08:06:45.922 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 08:06:45.924 NotebookApp]
Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
http://(5cb9602a2a30 or 127.0.0.1):8888/?token=e4c38ce33c5ea6f46792a9ae95d87f75a281300af4fcaf13
Open the firefox and go to the URL http://server-ip-address:8888/?token=e4c38ce33c5ea6f46792a9ae95d87f75a281300af4fcaf13
Ctrl + c to exit the docker console.
run-jupyter.sh:
```
#!/usr/bin/env bash
LOCAL_DIR="$HOME/jupyter-tensorflow/work"
docker run -d --restart=always --name=jupyter \
-p 8888:8888 \
-v $LOCAL_DIR:/home/jovyan/work \
jupyter/tensorflow-notebook
docker ps
```
stop-jupyter.sh:
```
#!/bin/bash
NAME="jupyter"
docker stop $NAME
docker rm $NAME
docker ps
```
Change the permission of the scripts
```
chmod 0755 run-jupyter.sh stop-jupyter.sh
```
### Manually Start Jupyter
Create the directory
```
mkdir -p jupyter-tensorflow/work
```
Start the jupyter:
```
./run-jupyter.sh
```
Get the token info:
```
docker logs --tail 3 jupyter
```
Stop the jupyter:
```
./stop-jupyter.sh
```