Error response from daemon: No such container

Hi - I am quite new to Docker and playing with the instructions here:

https://docs.docker.com/engine/userguide/containers/dockerimages/

In particular I am trying these steps but I get an error:

xxx@ubuntu:~$ docker run -t -i training/sinatra /bin/bash
root@0de606236049:/# gem install json
Fetching: json-1.8.3.gem (100%)
Building native extensions. This could take a while…
Successfully installed json-1.8.3
1 gem installed
Installing ri documentation for json-1.8.3…
Installing RDoc documentation for json-1.8.3…
root@0de606236049:/# exit
exit
xxx@ubuntu:~$ docker commit -m “add json gem” -a “xxx” \ 0de606236049 ouruser/sinatra:v2
Error response from daemon: No such container: 0de606236049
xxx@ubuntu:~$

Found the issue…omit the /

xxx@ubuntu:~$ docker run -t -i ouruser/sinatra:v2 /bin/bash
root@a9adea022b17:/# apt get install traceroute
E: Invalid operation get
root@a9adea022b17:/# apt-get install traceroute
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
traceroute
0 upgraded, 1 newly installed, 0 to remove and 17 not upgraded.
Need to get 44.6 kB of archives.
After this operation, 176 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ trusty/universe traceroute amd64 1:2.0.19-3 [44.6 kB]
Fetched 44.6 kB in 1s (29.9 kB/s)
Selecting previously unselected package traceroute.
(Reading database … 19232 files and directories currently installed.)
Preparing to unpack …/traceroute_1%3a2.0.19-3_amd64.deb …
Unpacking traceroute (1:2.0.19-3) …
Setting up traceroute (1:2.0.19-3) …
update-alternatives: using /usr/bin/traceroute.db to provide /usr/bin/traceroute (traceroute) in auto mode
update-alternatives: using /usr/bin/traceroute6.db to provide /usr/bin/traceroute6 (traceroute6) in auto mode
update-alternatives: using /usr/bin/lft.db to provide /usr/bin/lft (lft) in auto mode
update-alternatives: using /usr/bin/traceproto.db to provide /usr/bin/traceproto (traceproto) in auto mode
update-alternatives: using /usr/sbin/tcptraceroute.db to provide /usr/sbin/tcptraceroute (tcptraceroute) in auto mode
root@a9adea022b17:/# exit
exit
xxx@ubuntu:~$ docker commit -m “add traceroute” -a “xxx
” a9adea022b17 ouruser/sinatra:v2
sha256:2e41ea479a4acf6a8d65919ad25bb016d52c9a2a1cf5d0f1635e543d68c68e8e

1 Like

Thanx a ton! Saved me a lot of time!

docker build -t zeppelinhub .
Error response from daemon: No such image: zeppelinhub:latest