note that --link just adds a container to /etc/hosts that means you can connect to mongodb on another container named "inspiring_boyd" by having mongo connect to the database at "inspiring_boyd" instead of "localhost". This automatically resolves to the IP address of the mongo container.
|5 years ago|
|Dockerfile||5 years ago|
|README.md||5 years ago|
|build_jupyter.sh||5 years ago|
|run_jupyter.sh||5 years ago|
|start_jupyter.sh||5 years ago|
Jupyter Notebook Docker Container
This repo contains scripts for building Docker containers that run Jupyter notebooks.
Jupyter + Mongo
The Dockerfile uses aptitude to install the following components:
Note that we need to install the python-scipy version of Scipy
pip install scipy causes this machine
to run out of memory.
The script then uses pip to install the following:
To build the container, use the
This script does not require any configuration.
To run the container, use the
This script links the Jupyter container to the Mongo container,
and must be configured to point to the correct name of the
The container exposes port 8888 to the outside world. Because it is linked to the MongoDB container, port 27017 (MongoDB) is also accessible from the Jupyter notebook.