Hi all,
Does anybody have experience running temporary ipython notebooks using tmpnb?
For a workshop we have created a docker image based on quay.io/fenicsproject/stable:1.6.0 and we would like to run multiple temporary containers of this image using jupyter/tmpnb.
We are using rackspace to host our interactive notebooks and we where successfull in starting our container and connecting to it using the browser on our local machine.
This was achieve with the command:
docker run --name notebook -d -p 8000:8888 samsi/hippylib 'jupyter-notebook --ip=0.0.0.0'
where samsi/hippylib is our docker image based on quay.io/fenicsproject/stable:1.6.0, and we set "-p 8000:8888" instead of "-p 127.0.0.1:8888:8888" to allow connections from the student (remote) laptops.
Now we would like to use jupyter/tmpnb to run multiple temporary containers so that each student can play around and modify the examples without compromising the original container.
We have tried the following commands:
export TOKEN=$( head -c 30 /dev/urandom | xxd -p )
docker run --net=host -d -e CONFIGPROXY_AUTH_TOKEN=$TOKEN --name=proxy jupyter/configurable-http-proxy --default-target http://127.0.0.1:9999
docker run --net=host -d -e CONFIGPROXY_AUTH_TOKEN=$TOKEN \
-v /var/run/docker.sock:/docker.sock \
jupyter/tmpnb python orchestrate.py --image='samsi/hippylib' --pool_size=30 --mem_limit=1g \
--command='jupyter-notebook --ip=0.0.0.0'
but unfortunately the temporary containers do not load correctly.
Does anyone have an insight on what the problem could be?
Thanks in advance.
Best,
Umberto