[IPython-dev] Unable to start Jupityr on Docker using "Quick start" instructions
roalexan
roalexan at microsoft.com
Sat Oct 25 03:19:46 EDT 2014
With a fresh VM, I installed Docker then did the following steps:
sudo docker pull jupyter/demo
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 python orchestrate.py
--cull-timeout=60 --docker-version="1.12" --mem_limit=256m --pool-size=2
NOTE: I'm specifying pool-size (2) * mem_limit (256m) = 512m, and my VM has
768m.
I then listed the running Docker containers via:
sudo docker ps -a
CONTAINER ID IMAGE COMMAND
CREATED STATUS PORTS NAMES
090b48f7776f jupyter/tmpnb:latest python
orchestrate.p 41 seconds ago Exited (1) 32 seconds ago
mad_kirch
fc080e9738e1 jupyter/configurable-http-proxy:latest
configurable-http-pr 18 minutes ago Up 18 minutes
ecstatic_goodall
This indicates that the tmpnb process exited, so looked at the logs for this
container and saw an error (see below) - any idea what is going on?
sudo docker logs fc080e9738e1
06:28:24.502 - info: [ConfigProxy] Proxying http://*:8000 to
http://127.0.0.1:9999
06:28:24.552 - info: [ConfigProxy] Proxy API at
http://localhost:8001/api/routes
azureuser at rbaJupyDockVm4:~$ sudo docker logs 090b48f7776f
[E 141025 06:46:23 dockworker:157] Encountered a Docker error (5 retries
remain): 404 Client Error: Not Found ("No such image: jupyter/demo (tag:
latest)")
[E 141025 06:46:23 dockworker:157] Encountered a Docker error (4 retries
remain): 404 Client Error: Not Found ("No such image: jupyter/demo (tag:
latest)")
[E 141025 06:46:23 dockworker:157] Encountered a Docker error (5 retries
remain): 404 Client Error: Not Found ("No such image: jupyter/demo (tag:
latest)")
[E 141025 06:46:23 dockworker:157] Encountered a Docker error (3 retries
remain): 404 Client Error: Not Found ("No such image: jupyter/demo (tag:
latest)")
[E 141025 06:46:23 dockworker:157] Encountered a Docker error (2 retries
remain): 404 Client Error: Not Found ("No such image: jupyter/demo (tag:
latest)")
[E 141025 06:46:23 dockworker:157] Encountered a Docker error (4 retries
remain): 404 Client Error: Not Found ("No such image: jupyter/demo (tag:
latest)")
[E 141025 06:46:23 dockworker:157] Encountered a Docker error (3 retries
remain): 404 Client Error: Not Found ("No such image: jupyter/demo (tag:
latest)")
[E 141025 06:46:23 dockworker:157] Encountered a Docker error (2 retries
remain): 404 Client Error: Not Found ("No such image: jupyter/demo (tag:
latest)")
[E 141025 06:46:23 dockworker:157] Encountered a Docker error (1 retries
remain): 404 Client Error: Not Found ("No such image: jupyter/demo (tag:
latest)")
[E 141025 06:46:23 dockworker:157] Encountered a Docker error (1 retries
remain): 404 Client Error: Not Found ("No such image: jupyter/demo (tag:
latest)")
[E 141025 06:46:23 dockworker:157] Encountered a Docker error (0 retries
remain): 404 Client Error: Not Found ("No such image: jupyter/demo (tag:
latest)")
[E 141025 06:46:23 dockworker:157] Encountered a Docker error (0 retries
remain): 404 Client Error: Not Found ("No such image: jupyter/demo (tag:
latest)")
Traceback (most recent call last):
File "orchestrate.py", line 199, in <module>
main()
File "orchestrate.py", line 182, in main
ioloop.run_sync(pool.heartbeat)
File "/usr/local/lib/python2.7/dist-packages/tornado/ioloop.py", line 418,
in run_sync
return future_cell[0].result()
File "/usr/local/lib/python2.7/dist-packages/tornado/concurrent.py", line
109, in result
raise_exc_info(self._exc_info)
File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 631, in
run
yielded = self.gen.throw(*sys.exc_info())
File "/srv/tmpnb/spawnpool.py", line 170, in heartbeat
yield tasks
File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 628, in
run
value = future.result()
File "/usr/local/lib/python2.7/dist-packages/tornado/concurrent.py", line
109, in result
raise_exc_info(self._exc_info)
File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 464, in
callback
result_list = [i.result() for i in children]
File "/usr/local/lib/python2.7/dist-packages/tornado/concurrent.py", line
109, in result
raise_exc_info(self._exc_info)
File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 631, in
run
yielded = self.gen.throw(*sys.exc_info())
File "/srv/tmpnb/spawnpool.py", line 195, in _launch_container
container_config=self.container_config)
File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 628, in
run
value = future.result()
File "/usr/local/lib/python2.7/dist-packages/tornado/concurrent.py", line
109, in result
raise_exc_info(self._exc_info)
File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 631, in
run
yielded = self.gen.throw(*sys.exc_info())
File "/srv/tmpnb/dockworker.py", line 95, in create_notebook_server
cpu_shares=container_config.cpu_shares)
File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 628, in
run
value = future.result()
File "/usr/local/lib/python2.7/dist-packages/tornado/concurrent.py", line
109, in result
raise_exc_info(self._exc_info)
File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 631, in
run
yielded = self.gen.throw(*sys.exc_info())
File "/srv/tmpnb/dockworker.py", line 160, in _with_retries
result = yield self._with_retries(fn, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 628, in
run
value = future.result()
File "/usr/local/lib/python2.7/dist-packages/tornado/concurrent.py", line
109, in result
raise_exc_info(self._exc_info)
File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 631, in
run
yielded = self.gen.throw(*sys.exc_info())
File "/srv/tmpnb/dockworker.py", line 160, in _with_retries
result = yield self._with_retries(fn, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 628, in
run
value = future.result()
File "/usr/local/lib/python2.7/dist-packages/tornado/concurrent.py", line
109, in result
raise_exc_info(self._exc_info)
File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 631, in
run
yielded = self.gen.throw(*sys.exc_info())
File "/srv/tmpnb/dockworker.py", line 160, in _with_retries
result = yield self._with_retries(fn, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 628, in
run
value = future.result()
File "/usr/local/lib/python2.7/dist-packages/tornado/concurrent.py", line
109, in result
raise_exc_info(self._exc_info)
File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 631, in
run
yielded = self.gen.throw(*sys.exc_info())
File "/srv/tmpnb/dockworker.py", line 160, in _with_retries
result = yield self._with_retries(fn, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 628, in
run
value = future.result()
File "/usr/local/lib/python2.7/dist-packages/tornado/concurrent.py", line
109, in result
raise_exc_info(self._exc_info)
File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 631, in
run
yielded = self.gen.throw(*sys.exc_info())
File "/srv/tmpnb/dockworker.py", line 160, in _with_retries
result = yield self._with_retries(fn, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 628, in
run
value = future.result()
File "/usr/local/lib/python2.7/dist-packages/tornado/concurrent.py", line
109, in result
raise_exc_info(self._exc_info)
File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 631, in
run
yielded = self.gen.throw(*sys.exc_info())
File "/srv/tmpnb/dockworker.py", line 163, in _with_retries
raise e
docker.errors.APIError: 404 Client Error: Not Found ("No such image:
jupyter/demo (tag: latest)")
--
View this message in context: http://python.6.x6.nabble.com/Unable-to-start-Jupityr-on-Docker-using-Quick-start-instructions-tp5075454p5075736.html
Sent from the IPython - Development mailing list archive at Nabble.com.
More information about the IPython-dev
mailing list