Public | Automated Build

Last pushed: 3 months ago
Short Description
Deprecated IPython Notebook image. See https://github.com/jupyter/docker-stacks.
Full Description

Dockerized Notebook

Docker container for the IPython notebook (single user).

Quickstart

Assuming you have docker installed, run this to start up a notebook server over HTTPS.

docker run -d -p 443:8888 -e "PASSWORD=MakeAPassword" ipython/notebook

You'll now be able to access your notebook at https://localhost with password MakeAPassword (please change the environment variable above).

Hacking on the Dockerfile

Clone this repository, make changes then build the container:

docker build -t notebook .
docker run -d -p 443:8888 -e "PASSWORD=MakeAPassword" notebook

Use your own certificate

This image looks for /key.pem. If it doesn't exist a self signed certificate will be made. If you would like to use your own certificate, concatenate your private and public key along with possible intermediate certificates in a pem file. The order should be (top to bottom): key, certificate, intermediate certificate.

Example:

cat hostname.key hostname.pub.cert intermidiate.cert > hostname.pem

Then you would mount this file to the docker container:

docker run -v /path/to/hostname.pem:/key.pem -d -p 443:8888 -e "PASSWORD=pass" ipython/scipyserver

Using HTTP

This docker image by default runs IPython notebook in HTTPS. If you'd like to run this in HTTP,
you can use the USE_HTTP environment variable. Setting it to a non-zero value enables HTTP.

Example:

docker run -d -p 80:8888 -e "PASSWORD=MakeAPassword" -e "USE_HTTP=1" ipython/notebook
Docker Pull Command
Owner
ipython
Source Repository

Comments (13)
rphelipot
2 years ago

I encountered the same issue as olajir:

$ docker run -d -p 443:8888 -e "PASSWORD=MakeAPassword" ipython/notebook
Unable to find image 'ipython/notebook:latest' locally
Pulling repository ipython/notebook
b473da6e057a: Error pulling image (latest) from ipython/notebook, HTTP code 400 
428b411c28f0: Download complete 
435050075b3f: Download complete 
9fd3c8c9af32: Download complete 
6d4946999d4f: Download complete 
9bd2d4fa7079: Download complete 
d6d97543cd83: Download complete 
7f13ac159046: Download complete 
a15e944e9b19: Download complete 
ee69352e1c03: Error pulling dependent layers 
FATA[0014] Error pulling image (latest) from ipython/notebook, HTTP code 400
olajir
2 years ago

Pulling image fails, it seems that one layer is unavailable:

$ docker pull ipython/notebook
Pulling repository ipython/notebook
b473da6e057a: Error pulling image (latest) from ipython/notebook, HTTP code 400 
428b411c28f0: Download complete 
435050075b3f: Download complete 
9fd3c8c9af32: Download complete 
6d4946999d4f: Download complete 
9bd2d4fa7079: Download complete 
d6d97543cd83: Download complete 
7f13ac159046: Download complete 
a15e944e9b19: Download complete 
ee69352e1c03: Error pulling dependent layers 
FATA[0021] Error pulling image (latest) from ipython/notebook, HTTP code 400
lorinc
2 years ago

On Ubuntu 14.04.2 LTS host guest log says

[W 20:36:49.712 NotebookApp] SSL Error on 10 ('172.17.42.1', 55248): [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:598)
smallpotato
2 years ago

The image runs well and I can access notebook w/o issues.

However "import pandas as pd" encounter ImportError, searching in sys.path I couldn't find the relevant modules installed, am I wrong with something or should I install modules on my own?

thanks!

2uanta
2 years ago

There is a small typo in the above description. The command referred to scipyserver where it should be notebook.

2uanta
2 years ago

Is there a way to run the container as non-root? I got this error when I forced a different UID:

# docker run --rm -p 8080:8888 -u 12000:12000 -e     "PASSWORD=MakeAPassword" --name notebook ipython/notebook

Generating a 2048 bit RSA private key
........................................+++
...........................................+++
unable to write 'random state'
writing new private key to '/key.pem'
/key.pem: Permission denied
140655002814112:error:0200100D:system library:fopen:Permission denied:bss_file.c:398:fopen('/key.pem','w')
140655002814112:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:400:
nealmcb
2 years ago

Ahh - the problem seems to be trying to run it interactively (-i -t). Using -d as suggested in the README works fine. I probably just caught a transition of some sort in my previous report.

nealmcb
3 years ago

The master image works for me - thanks!

 $ docker run -i -t -p 443:8888 -e "PASSWORD=MakeAPassword" ipython/notebook:master

But the latest image fails with:

$ docker run -i -t -p 443:8888 -e "PASSWORD=MakeAPassword" ipython/notebook

no such file or directoryFATA[0000] Error response from daemon: Cannot start container 0c0e47455ce6dea0917be82462872120d328ce0015d8e39d0532996579448002: no such file or directory 
$
hedata
3 years ago

hi guys great work but one question how recent is this build regarding to the master branch in github

since https://github.com/ipython/ipython/pull/6614 --> i really would love to get it from this container .. or maybe its alredy in and ther is no menu item ?

d2xdt2
3 years ago

localhost:8888:8888 should be 8888:8888, as it will fail with port 8888 already in use, and notice https://localhost:8888. Someone ought to report this bug to the repo owner (make a pull request).

A better example would have been 443:8888 and https://localhost.