Ochestrate.py seems to ignore the CMD line of a given image

21 views
Skip to first unread message

Dietmar Winkler

unread,
Aug 6, 2015, 9:36:04 AM8/6/15
to Project Jupyter
 I've set up a jupyter server based on the tmpnb Docker file. When starting the server i supply ochestrate.py with my own notebook docker image.

docker run --net=host -d -e CONFIGPROXY_AUTH_TOKEN=$TOKEN \
       
--name=tmpnb \
       
-v /var/run/docker.sock:/docker.sock jupyter/tmpnb python orchestrate.py \
       
--image=dietmarw/notebook

but it seems that the CMD inside my image dietmarw/notebook is not exectuted. Everything else works as expected except that last CMD. Is there some option one has to pass to `ochestrate.py` in order to change that?

The complete run.sh script and my Dockerfile can be found under: https://github.com/dietmarw/docker-notebook

Tim Head

unread,
Aug 6, 2015, 9:40:41 AM8/6/15
to jup...@googlegroups.com
Hi,


On Thu, Aug 6, 2015 at 3:36 PM Dietmar Winkler <dietmar...@dwe.no> wrote:
 I've set up a jupyter server based on the tmpnb Docker file. When starting the server i supply ochestrate.py with my own notebook docker image.

docker run --net=host -d -e CONFIGPROXY_AUTH_TOKEN=$TOKEN \
       
--name=tmpnb \
       
-v /var/run/docker.sock:/docker.sock jupyter/tmpnb python orchestrate.py \
       
--image=dietmarw/notebook

but it seems that the CMD inside my image dietmarw/notebook is not exectuted. Everything else works as expected except that last CMD. Is there some option one has to pass to `ochestrate.py` in order to change that?


You have to pass the command as a command line argument to orchestrate.py

Some more hints on what the command should look like here: https://github.com/jupyter/tmpnb/blob/master/dockworker.py#L73 which is where it is used.

T

Dietmar Winkler

unread,
Aug 6, 2015, 10:00:17 AM8/6/15
to Project Jupyter
Thanks. That was exactly what I was looking for!

/Dietmar/
Reply all
Reply to author
Forward
0 new messages