[IPython-dev] Unable to start Jupityr on Docker using "Quick start" instructions

Robert Alexander roalexan at microsoft.com
Wed Oct 22 14:21:49 EDT 2014


Hello. I'm fairly new to Jupityr/Docker. Last week I did the following steps to get things started:


-Create a Ubuntu 14.04 VM on Azure # tier:basic, size:A0)

-Get Docker (following official Docker instructions at: http://docs.docker.com/installation/ubuntulinux/)

sudo apt-get update # Ensure the list of available packages is up to date before installing anything new

sudo apt-get -y install docker.io # Install Docker by installing the docker-io package

sudo ln -sf /usr/bin/docker.io /usr/local/bin/docker # link and fix paths

# sudo sed -i '$acomplete -F _docker docker' /etc/bash_completion.d/docker.io - instructions say to do this, but the line is already there

sudo update-rc.d docker.io defaults # optionally, configure Docker to start when the server boots

source /etc/bash_completion.d/docker.io

-Get Docker container using "Quick start" (follow instructions at: https://github.com/jupyter/tmpnb)

sudo docker pull jupyter/demo # download Docker container.

export TOKEN=$( head -c 30 /dev/urandom | xxd -p )

sudo docker run --net=host -d -e CONFIGPROXY_AUTH_TOKEN=$TOKEN jupyter/configurable-http-proxy --default-target http://127.0.0.1:9999

sudo docker run --net=host -d -e CONFIGPROXY_AUTH_TOKEN=$TOKEN -v /var/run/docker.sock:/docker.sock jupyter/tmpnb

-Add new endpoint to virtual machine

protocol:TCP, public port:8000,    private port:9999 # map internal to external port

This wasn't without error. I got the error:

APIError: 404 Client Error: Not Found ("client and server don't have same version (client : 1.13, server: 1.12)")

So, I was attempting to re-run my steps, this time explicitly setting the docker version via:

sudo docker run --net=host -d -e CONFIGPROXY_AUTH_TOKEN=$TOKEN -v /var/run/docker.sock:/docker.sock jupyter/tmpnb python orchestrate.py --cull-timeout=60 --docker-version="1.12"

However, now I time out trying to get to the Jupyter demo. Did something change to break things between then and now?


-Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20141022/027d979c/attachment.html>


More information about the IPython-dev mailing list