删除镜像
wangshumin@machine1:~/sinatra$ docker rm dff3bbdb7aba ce4b1c2725b8dff3bbdb7abaError response from daemon: You cannot remove a running container ce4b1c2725b87551415e25bb43fdb762cff9733e5492b9157e12277
·
wangshumin@machine1:~/sinatra$ docker rm dff3bbdb7aba ce4b1c2725b8
dff3bbdb7aba
Error response from daemon: You cannot remove a running container ce4b1c2725b87551415e25bb43fdb762cff9733e5492b9157e12277e31646d39. Stop the container before attempting removal or use -f
wangshumin@machine1:~/sinatra$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2a8822ad5553 wangshumin_docker:v4 "/bin/bash" 4 minutes ago Up 4 minutes 80/tcp, 0.0.0.0:42->43/tcp docker3
46b2a14bd2b2 wangshumin_docker:v4 "/bin/bash" 11 minutes ago Up 11 minutes 80/tcp, 0.0.0.0:40->41/tcp docker1
ce4b1c2725b8 512ee47225b5 "/bin/sh -c 'apt-g..." 21 minutes ago Up 21 minutes vibrant_shaw
395f2d60ae08 wangshumin20180308:v2 "/bin/bash" 2 hours ago Up 2 hours 4041/tcp, 0.0.0.0:8080->8081/tcp content2
43a7706f7a25 ubuntu "/bin/bash" 2 hours ago Up 2 hours mwt2
3abaf87ce81c wangshumibee:v5 "/bin/bash" 4 hours ago Exited (127) 3 hours ago name2
94fdb646aa98 wangshumibee:v5 "/bin/bash" 4 hours ago Exited (0) 3 hours ago name1
a5faa23cdf4b ubuntu "/bin/bash" 4 hours ago Up 3 hours mwt1
f027b6fb7f90 2d8c302cfc1a "/bin/sh -c 'apt-g..." 20 hours ago Exited (100) 20 hours ago romantic_kare
1f438186bfc7 ubuntu "/bin/bash" 24 hours ago Exited (0) 24 hours ago practical_haibt
fcc545c72053 training/webapp "python app.py" 25 hours ago Exited (137) 3 hours ago web
645eb135fd01 wangshumibee:v5 "/bin/sh -c 'while..." 26 hours ago Exited (0) 26 hours ago vibrant_volhard
c306c680a2b3 wangshumibee:v5 "/bin/echo 'Hello ..." 26 hours ago Exited (0) 26 hours ago elegant_liskov
wangshumin@machine1:~/sinatra$ docker rm c306c680a2b3
c306c680a2b3
wangshumin@machine1:~/sinatra$ docker rm ce4b1c2725b8
Error response from daemon: You cannot remove a running container ce4b1c2725b87551415e25bb43fdb762cff9733e5492b9157e12277e31646d39. Stop the container before attempting removal or use -f
wangshumin@machine1:~/sinatra$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2a8822ad5553 wangshumin_docker:v4 "/bin/bash" 5 minutes ago Up 5 minutes 80/tcp, 0.0.0.0:42->43/tcp docker3
46b2a14bd2b2 wangshumin_docker:v4 "/bin/bash" 11 minutes ago Up 11 minutes 80/tcp, 0.0.0.0:40->41/tcp docker1
ce4b1c2725b8 512ee47225b5 "/bin/sh -c 'apt-g..." 22 minutes ago Up 22 minutes vibrant_shaw
395f2d60ae08 wangshumin20180308:v2 "/bin/bash" 2 hours ago Up 2 hours 4041/tcp, 0.0.0.0:8080->8081/tcp content2
43a7706f7a25 ubuntu "/bin/bash" 2 hours ago Up 2 hours mwt2
3abaf87ce81c wangshumibee:v5 "/bin/bash" 4 hours ago Exited (127) 3 hours ago name2
94fdb646aa98 wangshumibee:v5 "/bin/bash" 4 hours ago Exited (0) 3 hours ago name1
a5faa23cdf4b ubuntu "/bin/bash" 4 hours ago Up 3 hours mwt1
f027b6fb7f90 2d8c302cfc1a "/bin/sh -c 'apt-g..." 20 hours ago Exited (100) 20 hours ago romantic_kare
1f438186bfc7 ubuntu "/bin/bash" 24 hours ago Exited (0) 24 hours ago practical_haibt
fcc545c72053 training/webapp "python app.py" 25 hours ago Exited (137) 3 hours ago web
645eb135fd01 wangshumibee:v5 "/bin/sh -c 'while..." 26 hours ago Exited (0) 26 hours ago vibrant_volhard
wangshumin@machine1:~/sinatra$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2a8822ad5553 wangshumin_docker:v4 "/bin/bash" 6 minutes ago Up 6 minutes 80/tcp, 0.0.0.0:42->43/tcp docker3
46b2a14bd2b2 wangshumin_docker:v4 "/bin/bash" 12 minutes ago Up 12 minutes 80/tcp, 0.0.0.0:40->41/tcp docker1
ce4b1c2725b8 512ee47225b5 "/bin/sh -c 'apt-g..." 23 minutes ago Up 23 minutes vibrant_shaw
395f2d60ae08 wangshumin20180308:v2 "/bin/bash" 2 hours ago Up 2 hours 4041/tcp, 0.0.0.0:8080->8081/tcp content2
43a7706f7a25 ubuntu "/bin/bash" 2 hours ago Up 2 hours mwt2
a5faa23cdf4b ubuntu "/bin/bash" 4 hours ago Up 3 hours mwt1
wangshumin@machine1:~/sinatra$ docker attach 2a8822ad5553
root@2a8822ad5553:/#
root@2a8822ad5553:/#
root@2a8822ad5553:/# ifconfig
eth0 Link encap:Ethernet HWaddr 02:42:ac:11:00:07
inet addr:172.17.0.7 Bcast:0.0.0.0 Mask:255.255.0.0
inet6 addr: fe80::42:acff:fe11:7/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:22 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2524 (2.5 KB) TX bytes:936 (936.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
root@2a8822ad5553:/# wangshumin@machine1:~/sinatra$ docker attach 46b2a14bd2b2
root@46b2a14bd2b2:/# ifconfig
eth0 Link encap:Ethernet HWaddr 02:42:ac:11:00:06
inet addr:172.17.0.6 Bcast:0.0.0.0 Mask:255.255.0.0
inet6 addr: fe80::42:acff:fe11:6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:34 errors:0 dropped:0 overruns:0 frame:0
TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3460 (3.4 KB) TX bytes:1006 (1.0 KB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
root@46b2a14bd2b2:/#
root@46b2a14bd2b2:/# curl
bash: curl: command not found
root@46b2a14bd2b2:/# ifconfig^C
root@46b2a14bd2b2:/# wangshumin@machinrun -it -d -p 40:42 --name docker2 wangshumin_docker:v4 /bin/bash
89a651375e71f25040ea40b22a498b66f47560ab0ed9fe35f03c39f3a7cb7d5d
docker: Error response from daemon: driver failed programming external connectivity on endpoint docker2 (bf6840d3b6010f40b389ceb9e2bc083d268dedbe47edd06db9ea2ebf662b95e0): Bind for 0.0.0.0:40 failed: port is already allocated.
wangshumin@machine1:~/sinatra$
wangshumin@machine1:~/sinatra$
wangshumin@machine1:~/sinatra$
wangshumin@machine1:~/sinatra$ cat Dockerfile
# This is a comment
FROM ubuntu
MAINTAINER Docker1 wangshumin <wangshumin@docker.com>
RUN apt-get update
RUN apt-get install -y net-tools
RUN apt-get install -y iputils-ping
RUN apt-get install -y nginx
#RUN apt-get install -y curl
EXPOSE 80
CMD /bin/bash
wangshumin@machine1:~/sinatra$ vim Dockerfile
wangshumin@machine1:~/sinatra$ docker build -t="wangshumin_docker3:v3" .
Sending build context to Docker daemon 2.048 kB
Step 1/9 : FROM ubuntu
---> 0458a4468cbc
Step 2/9 : MAINTAINER Docker1 wangshumin <wangshumin@docker.com>
---> Using cache
---> 3f38995f6df6
Step 3/9 : RUN apt-get update
---> Using cache
---> 1c47e84a785c
Step 4/9 : RUN apt-get install -y net-tools
---> Using cache
---> d9bfa3472d4d
Step 5/9 : RUN apt-get install -y iputils-ping
---> Using cache
---> 003e48d8543e
Step 6/9 : RUN apt-get install -y nginx
---> Using cache
---> 512ee47225b5
Step 7/9 : RUN apt-get install -y curl
---> Running in ac4c73f1c28a
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
ca-certificates krb5-locales libasn1-8-heimdal libcurl3-gnutls
libgssapi-krb5-2 libgssapi3-heimdal libhcrypto4-heimdal libheimbase1-heimdal
libheimntlm0-heimdal libhx509-5-heimdal libk5crypto3 libkeyutils1
libkrb5-26-heimdal libkrb5-3 libkrb5support0 libldap-2.4-2
libroken18-heimdal librtmp1 libsasl2-2 libsasl2-modules libsasl2-modules-db
libsqlite3-0 libwind0-heimdal openssl
Suggested packages:
krb5-doc krb5-user libsasl2-modules-otp libsasl2-modules-ldap
libsasl2-modules-sql libsasl2-modules-gssapi-mit
| libsasl2-modules-gssapi-heimdal
The following NEW packages will be installed:
ca-certificates curl krb5-locales libasn1-8-heimdal libcurl3-gnutls
libgssapi-krb5-2 libgssapi3-heimdal libhcrypto4-heimdal libheimbase1-heimdal
libheimntlm0-heimdal libhx509-5-heimdal libk5crypto3 libkeyutils1
libkrb5-26-heimdal libkrb5-3 libkrb5support0 libldap-2.4-2
libroken18-heimdal librtmp1 libsasl2-2 libsasl2-modules libsasl2-modules-db
libsqlite3-0 libwind0-heimdal openssl
0 upgraded, 25 newly installed, 0 to remove and 21 not upgraded.
Need to get 3029 kB of archives.
After this operation, 12.0 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu xenial/main amd64 libsqlite3-0 amd64 3.11.0-1ubuntu1 [396 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 openssl amd64 1.0.2g-1ubuntu4.10 [492 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 ca-certificates all 20170717~16.04.1 [168 kB]
Get:4 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 krb5-locales all 1.13.2+dfsg-5ubuntu2 [13.2 kB]
Get:5 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libroken18-heimdal amd64 1.7~git20150920+dfsg-4ubuntu1.16.04.1 [41.4 kB]
Get:6 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libasn1-8-heimdal amd64 1.7~git20150920+dfsg-4ubuntu1.16.04.1 [174 kB]
Get:7 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libkrb5support0 amd64 1.13.2+dfsg-5ubuntu2 [30.8 kB]
Get:8 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libk5crypto3 amd64 1.13.2+dfsg-5ubuntu2 [81.2 kB]
Get:9 http://archive.ubuntu.com/ubuntu xenial/main amd64 libkeyutils1 amd64 1.5.9-8ubuntu1 [9904 B]
Get:10 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libkrb5-3 amd64 1.13.2+dfsg-5ubuntu2 [273 kB]
Get:11 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libgssapi-krb5-2 amd64 1.13.2+dfsg-5ubuntu2 [120 kB]
Get:12 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libhcrypto4-heimdal amd64 1.7~git20150920+dfsg-4ubuntu1.16.04.1 [85.0 kB]
Get:13 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libheimbase1-heimdal amd64 1.7~git20150920+dfsg-4ubuntu1.16.04.1 [29.3 kB]
Get:14 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libwind0-heimdal amd64 1.7~git20150920+dfsg-4ubuntu1.16.04.1 [47.8 kB]
Get:15 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libhx509-5-heimdal amd64 1.7~git20150920+dfsg-4ubuntu1.16.04.1 [107 kB]
Get:16 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libkrb5-26-heimdal amd64 1.7~git20150920+dfsg-4ubuntu1.16.04.1 [202 kB]
Get:17 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libheimntlm0-heimdal amd64 1.7~git20150920+dfsg-4ubuntu1.16.04.1 [15.1 kB]
Get:18 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libgssapi3-heimdal amd64 1.7~git20150920+dfsg-4ubuntu1.16.04.1 [96.1 kB]
Get:19 http://archive.ubuntu.com/ubuntu xenial/main amd64 libsasl2-modules-db amd64 2.1.26.dfsg1-14build1 [14.5 kB]
Get:20 http://archive.ubuntu.com/ubuntu xenial/main amd64 libsasl2-2 amd64 2.1.26.dfsg1-14build1 [48.7 kB]
Get:21 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libldap-2.4-2 amd64 2.4.42+dfsg-2ubuntu3.2 [160 kB]
Get:22 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 librtmp1 amd64 2.4+20151223.gitfa8646d-1ubuntu0.1 [54.4 kB]
Get:23 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libcurl3-gnutls amd64 7.47.0-1ubuntu2.6 [184 kB]
Get:24 http://archive.ubuntu.com/ubuntu xenial/main amd64 libsasl2-modules amd64 2.1.26.dfsg1-14build1 [47.5 kB]
Get:25 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 curl amd64 7.47.0-1ubuntu2.6 [138 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 3029 kB in 1min 35s (31.8 kB/s)
Selecting previously unselected package libsqlite3-0:amd64.
(Reading database ... 5566 files and directories currently installed.)
Preparing to unpack .../libsqlite3-0_3.11.0-1ubuntu1_amd64.deb ...
Unpacking libsqlite3-0:amd64 (3.11.0-1ubuntu1) ...
Selecting previously unselected package openssl.
Preparing to unpack .../openssl_1.0.2g-1ubuntu4.10_amd64.deb ...
Unpacking openssl (1.0.2g-1ubuntu4.10) ...
Selecting previously unselected package ca-certificates.
Preparing to unpack .../ca-certificates_20170717~16.04.1_all.deb ...
Unpacking ca-certificates (20170717~16.04.1) ...
Selecting previously unselected package krb5-locales.
Preparing to unpack .../krb5-locales_1.13.2+dfsg-5ubuntu2_all.deb ...
Unpacking krb5-locales (1.13.2+dfsg-5ubuntu2) ...
Selecting previously unselected package libroken18-heimdal:amd64.
Preparing to unpack .../libroken18-heimdal_1.7~git20150920+dfsg-4ubuntu1.16.04.1_amd64.deb ...
Unpacking libroken18-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Selecting previously unselected package libasn1-8-heimdal:amd64.
Preparing to unpack .../libasn1-8-heimdal_1.7~git20150920+dfsg-4ubuntu1.16.04.1_amd64.deb ...
Unpacking libasn1-8-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Selecting previously unselected package libkrb5support0:amd64.
Preparing to unpack .../libkrb5support0_1.13.2+dfsg-5ubuntu2_amd64.deb ...
Unpacking libkrb5support0:amd64 (1.13.2+dfsg-5ubuntu2) ...
Selecting previously unselected package libk5crypto3:amd64.
Preparing to unpack .../libk5crypto3_1.13.2+dfsg-5ubuntu2_amd64.deb ...
Unpacking libk5crypto3:amd64 (1.13.2+dfsg-5ubuntu2) ...
Selecting previously unselected package libkeyutils1:amd64.
Preparing to unpack .../libkeyutils1_1.5.9-8ubuntu1_amd64.deb ...
Unpacking libkeyutils1:amd64 (1.5.9-8ubuntu1) ...
Selecting previously unselected package libkrb5-3:amd64.
Preparing to unpack .../libkrb5-3_1.13.2+dfsg-5ubuntu2_amd64.deb ...
Unpacking libkrb5-3:amd64 (1.13.2+dfsg-5ubuntu2) ...
Selecting previously unselected package libgssapi-krb5-2:amd64.
Preparing to unpack .../libgssapi-krb5-2_1.13.2+dfsg-5ubuntu2_amd64.deb ...
Unpacking libgssapi-krb5-2:amd64 (1.13.2+dfsg-5ubuntu2) ...
Selecting previously unselected package libhcrypto4-heimdal:amd64.
Preparing to unpack .../libhcrypto4-heimdal_1.7~git20150920+dfsg-4ubuntu1.16.04.1_amd64.deb ...
Unpacking libhcrypto4-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Selecting previously unselected package libheimbase1-heimdal:amd64.
Preparing to unpack .../libheimbase1-heimdal_1.7~git20150920+dfsg-4ubuntu1.16.04.1_amd64.deb ...
Unpacking libheimbase1-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Selecting previously unselected package libwind0-heimdal:amd64.
Preparing to unpack .../libwind0-heimdal_1.7~git20150920+dfsg-4ubuntu1.16.04.1_amd64.deb ...
Unpacking libwind0-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Selecting previously unselected package libhx509-5-heimdal:amd64.
Preparing to unpack .../libhx509-5-heimdal_1.7~git20150920+dfsg-4ubuntu1.16.04.1_amd64.deb ...
Unpacking libhx509-5-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Selecting previously unselected package libkrb5-26-heimdal:amd64.
Preparing to unpack .../libkrb5-26-heimdal_1.7~git20150920+dfsg-4ubuntu1.16.04.1_amd64.deb ...
Unpacking libkrb5-26-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Selecting previously unselected package libheimntlm0-heimdal:amd64.
Preparing to unpack .../libheimntlm0-heimdal_1.7~git20150920+dfsg-4ubuntu1.16.04.1_amd64.deb ...
Unpacking libheimntlm0-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Selecting previously unselected package libgssapi3-heimdal:amd64.
Preparing to unpack .../libgssapi3-heimdal_1.7~git20150920+dfsg-4ubuntu1.16.04.1_amd64.deb ...
Unpacking libgssapi3-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Selecting previously unselected package libsasl2-modules-db:amd64.
Preparing to unpack .../libsasl2-modules-db_2.1.26.dfsg1-14build1_amd64.deb ...
Unpacking libsasl2-modules-db:amd64 (2.1.26.dfsg1-14build1) ...
Selecting previously unselected package libsasl2-2:amd64.
Preparing to unpack .../libsasl2-2_2.1.26.dfsg1-14build1_amd64.deb ...
Unpacking libsasl2-2:amd64 (2.1.26.dfsg1-14build1) ...
Selecting previously unselected package libldap-2.4-2:amd64.
Preparing to unpack .../libldap-2.4-2_2.4.42+dfsg-2ubuntu3.2_amd64.deb ...
Unpacking libldap-2.4-2:amd64 (2.4.42+dfsg-2ubuntu3.2) ...
Selecting previously unselected package librtmp1:amd64.
Preparing to unpack .../librtmp1_2.4+20151223.gitfa8646d-1ubuntu0.1_amd64.deb ...
Unpacking librtmp1:amd64 (2.4+20151223.gitfa8646d-1ubuntu0.1) ...
Selecting previously unselected package libcurl3-gnutls:amd64.
Preparing to unpack .../libcurl3-gnutls_7.47.0-1ubuntu2.6_amd64.deb ...
Unpacking libcurl3-gnutls:amd64 (7.47.0-1ubuntu2.6) ...
Selecting previously unselected package libsasl2-modules:amd64.
Preparing to unpack .../libsasl2-modules_2.1.26.dfsg1-14build1_amd64.deb ...
Unpacking libsasl2-modules:amd64 (2.1.26.dfsg1-14build1) ...
Selecting previously unselected package curl.
Preparing to unpack .../curl_7.47.0-1ubuntu2.6_amd64.deb ...
Unpacking curl (7.47.0-1ubuntu2.6) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Setting up libsqlite3-0:amd64 (3.11.0-1ubuntu1) ...
Setting up openssl (1.0.2g-1ubuntu4.10) ...
Setting up ca-certificates (20170717~16.04.1) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Setting up krb5-locales (1.13.2+dfsg-5ubuntu2) ...
Setting up libroken18-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Setting up libasn1-8-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Setting up libkrb5support0:amd64 (1.13.2+dfsg-5ubuntu2) ...
Setting up libk5crypto3:amd64 (1.13.2+dfsg-5ubuntu2) ...
Setting up libkeyutils1:amd64 (1.5.9-8ubuntu1) ...
Setting up libkrb5-3:amd64 (1.13.2+dfsg-5ubuntu2) ...
Setting up libgssapi-krb5-2:amd64 (1.13.2+dfsg-5ubuntu2) ...
Setting up libhcrypto4-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Setting up libheimbase1-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Setting up libwind0-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Setting up libhx509-5-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Setting up libkrb5-26-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Setting up libheimntlm0-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Setting up libgssapi3-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Setting up libsasl2-modules-db:amd64 (2.1.26.dfsg1-14build1) ...
Setting up libsasl2-2:amd64 (2.1.26.dfsg1-14build1) ...
Setting up libldap-2.4-2:amd64 (2.4.42+dfsg-2ubuntu3.2) ...
Setting up librtmp1:amd64 (2.4+20151223.gitfa8646d-1ubuntu0.1) ...
Setting up libcurl3-gnutls:amd64 (7.47.0-1ubuntu2.6) ...
Setting up libsasl2-modules:amd64 (2.1.26.dfsg1-14build1) ...
Setting up curl (7.47.0-1ubuntu2.6) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for ca-certificates (20170717~16.04.1) ...
Updating certificates in /etc/ssl/certs...
148 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
---> ea5e17831a6e
Removing intermediate container ac4c73f1c28a
Step 8/9 : EXPOSE 80
---> Running in 3e82e3637b84
---> 200aa4e57284
Removing intermediate container 3e82e3637b84
Step 9/9 : CMD /bin/bash
---> Running in 02097f666007
---> b26656009c55
Removing intermediate container 02097f666007
Successfully built b26656009c55
wangshumin@machine1:~/sinatra$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
wangshumin_docker3 v3 b26656009c55 2 minutes ago 223 MB
wangshumin_docker_ios v2 ad21133ac72c 23 minutes ago 223 MB
wangshumin_docker_ios vquan1 046df95f7e2c 43 minutes ago 213 MB
wangshumin_docker v4 046df95f7e2c 43 minutes ago 213 MB
wangshumin20180308 v2 bf24fd772192 2 hours ago 112 MB
wangshumin20180308 v1 c4e15d1c5fe1 2 hours ago 115 MB
wangshumibee v5 7e6c629767b7 27 hours ago 433 MB
ouruser/sinatra v3 54c944850825 27 hours ago 208 MB
centos latest 2d194b392dd1 2 days ago 195 MB
ubuntu latest 0458a4468cbc 5 weeks ago 112 MB
training/webapp latest 6fae60ef3446 2 years ago 349 MB
wangshumin@machine1:~/sinatra$ docker run -it -d -p 47:48 --name dockerquan2 wangshumin_docker_ios:vquan1 /bin/bash
docker: Error response from daemon: Conflict. The container name "/dockerquan2" is already in use by container ec13f1b24435df033193c56e6079612e676f16188b19bb79049a454ae7081254. You have to remove (or rename) that container to be able to reuse that name..
See 'docker run --help'.
wangshumin@machine1:~/sinatra$ docker run -it -d -p 30:31 --name dockerquan01 wangshumin_docker3:v3 /bin/bash
78c3b1a95a2da97adc63c3381ef5d35502ba21022e57221fd6e9400e20124e70
wangshumin@machine1:~/sinatra$ docker run -it -d -p 32:33 --name dockerquan02 wangshumin_docker3:v3 /bin/bash
04315161740c802e881a77fedf4450023032972ac02603795e9f40edb4b0e919
wangshumin@machine1:~/sinatra$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
04315161740c wangshumin_docker3:v3 "/bin/bash" 19 seconds ago Up 17 seconds 80/tcp, 0.0.0.0:32->33/tcp dockerquan02
78c3b1a95a2d wangshumin_docker3:v3 "/bin/bash" 35 seconds ago Up 34 seconds 80/tcp, 0.0.0.0:30->31/tcp dockerquan01
ec13f1b24435 wangshumin_docker_ios:vquan1 "/bin/bash" 20 minutes ago Up 20 minutes 80/tcp, 0.0.0.0:47->48/tcp dockerquan2
c6991814d327 wangshumin_docker_ios:vquan1 "/bin/bash" 21 minutes ago Up 21 minutes 80/tcp, 0.0.0.0:45->46/tcp dockerquan3
24569adfb362 wangshumin_docker_ios:vquan1 "/bin/bash" 22 minutes ago Up 22 minutes 80/tcp, 0.0.0.0:44->45/tcp dockerquan1
2a8822ad5553 wangshumin_docker:v4 "/bin/bash" 34 minutes ago Up 34 minutes 80/tcp, 0.0.0.0:42->43/tcp docker3
46b2a14bd2b2 wangshumin_docker:v4 "/bin/bash" 40 minutes ago Up 40 minutes 80/tcp, 0.0.0.0:40->41/tcp docker1
395f2d60ae08 wangshumin20180308:v2 "/bin/bash" 2 hours ago Up 2 hours 4041/tcp, 0.0.0.0:8080->8081/tcp content2
43a7706f7a25 ubuntu "/bin/bash" 3 hours ago Up 3 hours mwt2
a5faa23cdf4b ubuntu "/bin/bash" 4 hours ago Up 3 hours mwt1
wangshumin@machine1:~/sinatra$ docker attach 04315161740c
root@04315161740c:/#
root@04315161740c:/#
root@04315161740c:/#
root@04315161740c:/# curl
curl: try 'curl --help' or 'curl --manual' for more information
root@04315161740c:/# ping
Usage: ping [-aAbBdDfhLnOqrRUvV] [-c count] [-i interval] [-I interface]
[-m mark] [-M pmtudisc_option] [-l preload] [-p pattern] [-Q tos]
[-s packetsize] [-S sndbuf] [-t ttl] [-T timestamp_option]
[-w deadline] [-W timeout] [hop1 ...] destination
root@04315161740c:/# ^C
root@04315161740c:/# wangshumin@machine1:~/sinatra$
wangshumin@machine1:~/sinatra$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
wangshumin_docker3 v3 b26656009c55 6 minutes ago 223 MB
wangshumin_docker_ios v2 ad21133ac72c 27 minutes ago 223 MB
wangshumin_docker v4 046df95f7e2c 47 minutes ago 213 MB
wangshumin_docker_ios vquan1 046df95f7e2c 47 minutes ago 213 MB
wangshumin20180308 v2 bf24fd772192 2 hours ago 112 MB
wangshumin20180308 v1 c4e15d1c5fe1 2 hours ago 115 MB
wangshumibee v5 7e6c629767b7 27 hours ago 433 MB
ouruser/sinatra v3 54c944850825 28 hours ago 208 MB
centos latest 2d194b392dd1 2 days ago 195 MB
ubuntu latest 0458a4468cbc 5 weeks ago 112 MB
training/webapp latest 6fae60ef3446 2 years ago 349 MB
wangshumin@machine1:~/sinatra$ docker rmi 046df95f7e2c
Error response from daemon: conflict: unable to delete 046df95f7e2c (cannot be forced) - image is being used by running container 46b2a14bd2b2
wangshumin@machine1:~/sinatra$ wangshumin_docker_ios:vquan1
wangshumin_docker_ios:vquan1:未找到命令
wangshumin@machine1:~/sinatra$ docker rmi wangshumin_docker_ios:vquan1
Untagged: wangshumin_docker_ios:vquan1
wangshumin@machine1:~/sinatra$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
wangshumin_docker3 v3 b26656009c55 7 minutes ago 223 MB
wangshumin_docker_ios v2 ad21133ac72c 28 minutes ago 223 MB
wangshumin_docker v4 046df95f7e2c 48 minutes ago 213 MB
wangshumin20180308 v2 bf24fd772192 2 hours ago 112 MB
wangshumin20180308 v1 c4e15d1c5fe1 2 hours ago 115 MB
wangshumibee v5 7e6c629767b7 27 hours ago 433 MB
ouruser/sinatra v3 54c944850825 28 hours ago 208 MB
centos latest 2d194b392dd1 2 days ago 195 MB
ubuntu latest 0458a4468cbc 5 weeks ago 112 MB
training/webapp latest 6fae60ef3446 2 years ago 349 MB
wangshumin@machine1:~/sinatra$ docker rmi wangshumin_docker_ios:v2
Untagged: wangshumin_docker_ios:v2
Deleted: sha256:ad21133ac72c1116ef3b55bdcb4bd6a7eea1512f9591215614a986c3afc72a8d
Deleted: sha256:7c6312a54ebdd606281490dabe92dbeb139ce4ace9ac700578f07b1f3bf9e8f8
Deleted: sha256:e588d3b3c8154005b88eb8d9f988577c9528c3401796711a5bb98a1467b9ad80
Deleted: sha256:ceb7c5047b83439801982189a6f41ebf2dc4f1ab71556576fa947529aa18b6f7
wangshumin@machine1:~/sinatra$ docker rmi wangshumin_docker:v4
Error response from daemon: conflict: unable to remove repository reference "wangshumin_docker:v4" (must force) - container 46b2a14bd2b2 is using its referenced image 046df95f7e2c
wangshumin@machine1:~/sinatra$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
wangshumin_docker3 v3 b26656009c55 8 minutes ago 223 MB
wangshumin_docker v4 046df95f7e2c 49 minutes ago 213 MB
wangshumin20180308 v2 bf24fd772192 2 hours ago 112 MB
wangshumin20180308 v1 c4e15d1c5fe1 2 hours ago 115 MB
wangshumibee v5 7e6c629767b7 27 hours ago 433 MB
ouruser/sinatra v3 54c944850825 28 hours ago 208 MB
centos latest 2d194b392dd1 2 days ago 195 MB
ubuntu latest 0458a4468cbc 5 weeks ago 112 MB
training/webapp latest 6fae60ef3446 2 years ago 349 MB
wangshumin@machine1:~/sinatra$ docker rmi wangshumin_docker:v4
Error response from daemon: conflict: unable to remove repository reference "wangshumin_docker:v4" (must force) - container 24569adfb362 is using its referenced image 046df95f7e2c
wangshumin@machine1:~/sinatra$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
wangshumin_docker3 v3 b26656009c55 8 minutes ago 223 MB
wangshumin_docker v4 046df95f7e2c 49 minutes ago 213 MB
wangshumin20180308 v2 bf24fd772192 2 hours ago 112 MB
wangshumin20180308 v1 c4e15d1c5fe1 2 hours ago 115 MB
wangshumibee v5 7e6c629767b7 27 hours ago 433 MB
ouruser/sinatra v3 54c944850825 28 hours ago 208 MB
centos latest 2d194b392dd1 2 days ago 195 MB
ubuntu latest 0458a4468cbc 5 weeks ago 112 MB
training/webapp latest 6fae60ef3446 2 years ago 349 MB
wangshumin@machine1:~/sinatra$ docker rmi wangshumibee:v5
Error response from daemon: conflict: unable to remove repository reference "wangshumibee:v5" (must force) - container 3abaf87ce81c is using its referenced image 7e6c629767b7
wangshumin@machine1:~/sinatra$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
wangshumin_docker3 v3 b26656009c55 8 minutes ago 223 MB
wangshumin_docker v4 046df95f7e2c 50 minutes ago 213 MB
wangshumin20180308 v2 bf24fd772192 2 hours ago 112 MB
wangshumin20180308 v1 c4e15d1c5fe1 2 hours ago 115 MB
wangshumibee v5 7e6c629767b7 27 hours ago 433 MB
ouruser/sinatra v3 54c944850825 28 hours ago 208 MB
centos latest 2d194b392dd1 2 days ago 195 MB
ubuntu latest 0458a4468cbc 5 weeks ago 112 MB
training/webapp latest 6fae60ef3446 2 years ago 349 MB
wangshumin@machine1:~/sinatra$ docker rm 3abaf87ce81c
3abaf87ce81c
wangshumin@machine1:~/sinatra$ docker rmi wangshumibee:v5
Error response from daemon: conflict: unable to remove repository reference "wangshumibee:v5" (must force) - container 94fdb646aa98 is using its referenced image 7e6c629767b7
wangshumin@machine1:~/sinatra$ docker rm 94fdb646aa98
94fdb646aa98
wangshumin@machine1:~/sinatra$ docker rmi wangshumibee:v5
Error response from daemon: conflict: unable to remove repository reference "wangshumibee:v5" (must force) - container 645eb135fd01 is using its referenced image 7e6c629767b7
wangshumin@machine1:~/sinatra$ docker rm 645eb135fd01
645eb135fd01
wangshumin@machine1:~/sinatra$ docker rmi wangshumibee:v5
Untagged: wangshumibee:v5
Deleted: sha256:7e6c629767b732d6dccbb2e09049df299d01a4a3f11a599136d143f9b26a8a22
Deleted: sha256:702dc001f1b9ec746d408e834aa1699c00f2a630cb41cc7c59302a78ccdc020d
Deleted: sha256:d3758f4b57482354772dfa4f7935ba546105f7ebc57e50498355022a6203acee
wangshumin@machine1:~/sinatra$
wangshumin@machine1:~/sinatra$
wangshumin@machine1:~/sinatra$
wangshumin@machine1:~/sinatra$
dff3bbdb7aba
Error response from daemon: You cannot remove a running container ce4b1c2725b87551415e25bb43fdb762cff9733e5492b9157e12277e31646d39. Stop the container before attempting removal or use -f
wangshumin@machine1:~/sinatra$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2a8822ad5553 wangshumin_docker:v4 "/bin/bash" 4 minutes ago Up 4 minutes 80/tcp, 0.0.0.0:42->43/tcp docker3
46b2a14bd2b2 wangshumin_docker:v4 "/bin/bash" 11 minutes ago Up 11 minutes 80/tcp, 0.0.0.0:40->41/tcp docker1
ce4b1c2725b8 512ee47225b5 "/bin/sh -c 'apt-g..." 21 minutes ago Up 21 minutes vibrant_shaw
395f2d60ae08 wangshumin20180308:v2 "/bin/bash" 2 hours ago Up 2 hours 4041/tcp, 0.0.0.0:8080->8081/tcp content2
43a7706f7a25 ubuntu "/bin/bash" 2 hours ago Up 2 hours mwt2
3abaf87ce81c wangshumibee:v5 "/bin/bash" 4 hours ago Exited (127) 3 hours ago name2
94fdb646aa98 wangshumibee:v5 "/bin/bash" 4 hours ago Exited (0) 3 hours ago name1
a5faa23cdf4b ubuntu "/bin/bash" 4 hours ago Up 3 hours mwt1
f027b6fb7f90 2d8c302cfc1a "/bin/sh -c 'apt-g..." 20 hours ago Exited (100) 20 hours ago romantic_kare
1f438186bfc7 ubuntu "/bin/bash" 24 hours ago Exited (0) 24 hours ago practical_haibt
fcc545c72053 training/webapp "python app.py" 25 hours ago Exited (137) 3 hours ago web
645eb135fd01 wangshumibee:v5 "/bin/sh -c 'while..." 26 hours ago Exited (0) 26 hours ago vibrant_volhard
c306c680a2b3 wangshumibee:v5 "/bin/echo 'Hello ..." 26 hours ago Exited (0) 26 hours ago elegant_liskov
wangshumin@machine1:~/sinatra$ docker rm c306c680a2b3
c306c680a2b3
wangshumin@machine1:~/sinatra$ docker rm ce4b1c2725b8
Error response from daemon: You cannot remove a running container ce4b1c2725b87551415e25bb43fdb762cff9733e5492b9157e12277e31646d39. Stop the container before attempting removal or use -f
wangshumin@machine1:~/sinatra$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2a8822ad5553 wangshumin_docker:v4 "/bin/bash" 5 minutes ago Up 5 minutes 80/tcp, 0.0.0.0:42->43/tcp docker3
46b2a14bd2b2 wangshumin_docker:v4 "/bin/bash" 11 minutes ago Up 11 minutes 80/tcp, 0.0.0.0:40->41/tcp docker1
ce4b1c2725b8 512ee47225b5 "/bin/sh -c 'apt-g..." 22 minutes ago Up 22 minutes vibrant_shaw
395f2d60ae08 wangshumin20180308:v2 "/bin/bash" 2 hours ago Up 2 hours 4041/tcp, 0.0.0.0:8080->8081/tcp content2
43a7706f7a25 ubuntu "/bin/bash" 2 hours ago Up 2 hours mwt2
3abaf87ce81c wangshumibee:v5 "/bin/bash" 4 hours ago Exited (127) 3 hours ago name2
94fdb646aa98 wangshumibee:v5 "/bin/bash" 4 hours ago Exited (0) 3 hours ago name1
a5faa23cdf4b ubuntu "/bin/bash" 4 hours ago Up 3 hours mwt1
f027b6fb7f90 2d8c302cfc1a "/bin/sh -c 'apt-g..." 20 hours ago Exited (100) 20 hours ago romantic_kare
1f438186bfc7 ubuntu "/bin/bash" 24 hours ago Exited (0) 24 hours ago practical_haibt
fcc545c72053 training/webapp "python app.py" 25 hours ago Exited (137) 3 hours ago web
645eb135fd01 wangshumibee:v5 "/bin/sh -c 'while..." 26 hours ago Exited (0) 26 hours ago vibrant_volhard
wangshumin@machine1:~/sinatra$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2a8822ad5553 wangshumin_docker:v4 "/bin/bash" 6 minutes ago Up 6 minutes 80/tcp, 0.0.0.0:42->43/tcp docker3
46b2a14bd2b2 wangshumin_docker:v4 "/bin/bash" 12 minutes ago Up 12 minutes 80/tcp, 0.0.0.0:40->41/tcp docker1
ce4b1c2725b8 512ee47225b5 "/bin/sh -c 'apt-g..." 23 minutes ago Up 23 minutes vibrant_shaw
395f2d60ae08 wangshumin20180308:v2 "/bin/bash" 2 hours ago Up 2 hours 4041/tcp, 0.0.0.0:8080->8081/tcp content2
43a7706f7a25 ubuntu "/bin/bash" 2 hours ago Up 2 hours mwt2
a5faa23cdf4b ubuntu "/bin/bash" 4 hours ago Up 3 hours mwt1
wangshumin@machine1:~/sinatra$ docker attach 2a8822ad5553
root@2a8822ad5553:/#
root@2a8822ad5553:/#
root@2a8822ad5553:/# ifconfig
eth0 Link encap:Ethernet HWaddr 02:42:ac:11:00:07
inet addr:172.17.0.7 Bcast:0.0.0.0 Mask:255.255.0.0
inet6 addr: fe80::42:acff:fe11:7/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:22 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2524 (2.5 KB) TX bytes:936 (936.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
root@2a8822ad5553:/# wangshumin@machine1:~/sinatra$ docker attach 46b2a14bd2b2
root@46b2a14bd2b2:/# ifconfig
eth0 Link encap:Ethernet HWaddr 02:42:ac:11:00:06
inet addr:172.17.0.6 Bcast:0.0.0.0 Mask:255.255.0.0
inet6 addr: fe80::42:acff:fe11:6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:34 errors:0 dropped:0 overruns:0 frame:0
TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3460 (3.4 KB) TX bytes:1006 (1.0 KB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
root@46b2a14bd2b2:/#
root@46b2a14bd2b2:/# curl
bash: curl: command not found
root@46b2a14bd2b2:/# ifconfig^C
root@46b2a14bd2b2:/# wangshumin@machinrun -it -d -p 40:42 --name docker2 wangshumin_docker:v4 /bin/bash
89a651375e71f25040ea40b22a498b66f47560ab0ed9fe35f03c39f3a7cb7d5d
docker: Error response from daemon: driver failed programming external connectivity on endpoint docker2 (bf6840d3b6010f40b389ceb9e2bc083d268dedbe47edd06db9ea2ebf662b95e0): Bind for 0.0.0.0:40 failed: port is already allocated.
wangshumin@machine1:~/sinatra$
wangshumin@machine1:~/sinatra$
wangshumin@machine1:~/sinatra$
wangshumin@machine1:~/sinatra$ cat Dockerfile
# This is a comment
FROM ubuntu
MAINTAINER Docker1 wangshumin <wangshumin@docker.com>
RUN apt-get update
RUN apt-get install -y net-tools
RUN apt-get install -y iputils-ping
RUN apt-get install -y nginx
#RUN apt-get install -y curl
EXPOSE 80
CMD /bin/bash
wangshumin@machine1:~/sinatra$ vim Dockerfile
wangshumin@machine1:~/sinatra$ docker build -t="wangshumin_docker3:v3" .
Sending build context to Docker daemon 2.048 kB
Step 1/9 : FROM ubuntu
---> 0458a4468cbc
Step 2/9 : MAINTAINER Docker1 wangshumin <wangshumin@docker.com>
---> Using cache
---> 3f38995f6df6
Step 3/9 : RUN apt-get update
---> Using cache
---> 1c47e84a785c
Step 4/9 : RUN apt-get install -y net-tools
---> Using cache
---> d9bfa3472d4d
Step 5/9 : RUN apt-get install -y iputils-ping
---> Using cache
---> 003e48d8543e
Step 6/9 : RUN apt-get install -y nginx
---> Using cache
---> 512ee47225b5
Step 7/9 : RUN apt-get install -y curl
---> Running in ac4c73f1c28a
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
ca-certificates krb5-locales libasn1-8-heimdal libcurl3-gnutls
libgssapi-krb5-2 libgssapi3-heimdal libhcrypto4-heimdal libheimbase1-heimdal
libheimntlm0-heimdal libhx509-5-heimdal libk5crypto3 libkeyutils1
libkrb5-26-heimdal libkrb5-3 libkrb5support0 libldap-2.4-2
libroken18-heimdal librtmp1 libsasl2-2 libsasl2-modules libsasl2-modules-db
libsqlite3-0 libwind0-heimdal openssl
Suggested packages:
krb5-doc krb5-user libsasl2-modules-otp libsasl2-modules-ldap
libsasl2-modules-sql libsasl2-modules-gssapi-mit
| libsasl2-modules-gssapi-heimdal
The following NEW packages will be installed:
ca-certificates curl krb5-locales libasn1-8-heimdal libcurl3-gnutls
libgssapi-krb5-2 libgssapi3-heimdal libhcrypto4-heimdal libheimbase1-heimdal
libheimntlm0-heimdal libhx509-5-heimdal libk5crypto3 libkeyutils1
libkrb5-26-heimdal libkrb5-3 libkrb5support0 libldap-2.4-2
libroken18-heimdal librtmp1 libsasl2-2 libsasl2-modules libsasl2-modules-db
libsqlite3-0 libwind0-heimdal openssl
0 upgraded, 25 newly installed, 0 to remove and 21 not upgraded.
Need to get 3029 kB of archives.
After this operation, 12.0 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu xenial/main amd64 libsqlite3-0 amd64 3.11.0-1ubuntu1 [396 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 openssl amd64 1.0.2g-1ubuntu4.10 [492 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 ca-certificates all 20170717~16.04.1 [168 kB]
Get:4 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 krb5-locales all 1.13.2+dfsg-5ubuntu2 [13.2 kB]
Get:5 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libroken18-heimdal amd64 1.7~git20150920+dfsg-4ubuntu1.16.04.1 [41.4 kB]
Get:6 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libasn1-8-heimdal amd64 1.7~git20150920+dfsg-4ubuntu1.16.04.1 [174 kB]
Get:7 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libkrb5support0 amd64 1.13.2+dfsg-5ubuntu2 [30.8 kB]
Get:8 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libk5crypto3 amd64 1.13.2+dfsg-5ubuntu2 [81.2 kB]
Get:9 http://archive.ubuntu.com/ubuntu xenial/main amd64 libkeyutils1 amd64 1.5.9-8ubuntu1 [9904 B]
Get:10 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libkrb5-3 amd64 1.13.2+dfsg-5ubuntu2 [273 kB]
Get:11 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libgssapi-krb5-2 amd64 1.13.2+dfsg-5ubuntu2 [120 kB]
Get:12 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libhcrypto4-heimdal amd64 1.7~git20150920+dfsg-4ubuntu1.16.04.1 [85.0 kB]
Get:13 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libheimbase1-heimdal amd64 1.7~git20150920+dfsg-4ubuntu1.16.04.1 [29.3 kB]
Get:14 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libwind0-heimdal amd64 1.7~git20150920+dfsg-4ubuntu1.16.04.1 [47.8 kB]
Get:15 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libhx509-5-heimdal amd64 1.7~git20150920+dfsg-4ubuntu1.16.04.1 [107 kB]
Get:16 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libkrb5-26-heimdal amd64 1.7~git20150920+dfsg-4ubuntu1.16.04.1 [202 kB]
Get:17 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libheimntlm0-heimdal amd64 1.7~git20150920+dfsg-4ubuntu1.16.04.1 [15.1 kB]
Get:18 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libgssapi3-heimdal amd64 1.7~git20150920+dfsg-4ubuntu1.16.04.1 [96.1 kB]
Get:19 http://archive.ubuntu.com/ubuntu xenial/main amd64 libsasl2-modules-db amd64 2.1.26.dfsg1-14build1 [14.5 kB]
Get:20 http://archive.ubuntu.com/ubuntu xenial/main amd64 libsasl2-2 amd64 2.1.26.dfsg1-14build1 [48.7 kB]
Get:21 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libldap-2.4-2 amd64 2.4.42+dfsg-2ubuntu3.2 [160 kB]
Get:22 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 librtmp1 amd64 2.4+20151223.gitfa8646d-1ubuntu0.1 [54.4 kB]
Get:23 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libcurl3-gnutls amd64 7.47.0-1ubuntu2.6 [184 kB]
Get:24 http://archive.ubuntu.com/ubuntu xenial/main amd64 libsasl2-modules amd64 2.1.26.dfsg1-14build1 [47.5 kB]
Get:25 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 curl amd64 7.47.0-1ubuntu2.6 [138 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 3029 kB in 1min 35s (31.8 kB/s)
Selecting previously unselected package libsqlite3-0:amd64.
(Reading database ... 5566 files and directories currently installed.)
Preparing to unpack .../libsqlite3-0_3.11.0-1ubuntu1_amd64.deb ...
Unpacking libsqlite3-0:amd64 (3.11.0-1ubuntu1) ...
Selecting previously unselected package openssl.
Preparing to unpack .../openssl_1.0.2g-1ubuntu4.10_amd64.deb ...
Unpacking openssl (1.0.2g-1ubuntu4.10) ...
Selecting previously unselected package ca-certificates.
Preparing to unpack .../ca-certificates_20170717~16.04.1_all.deb ...
Unpacking ca-certificates (20170717~16.04.1) ...
Selecting previously unselected package krb5-locales.
Preparing to unpack .../krb5-locales_1.13.2+dfsg-5ubuntu2_all.deb ...
Unpacking krb5-locales (1.13.2+dfsg-5ubuntu2) ...
Selecting previously unselected package libroken18-heimdal:amd64.
Preparing to unpack .../libroken18-heimdal_1.7~git20150920+dfsg-4ubuntu1.16.04.1_amd64.deb ...
Unpacking libroken18-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Selecting previously unselected package libasn1-8-heimdal:amd64.
Preparing to unpack .../libasn1-8-heimdal_1.7~git20150920+dfsg-4ubuntu1.16.04.1_amd64.deb ...
Unpacking libasn1-8-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Selecting previously unselected package libkrb5support0:amd64.
Preparing to unpack .../libkrb5support0_1.13.2+dfsg-5ubuntu2_amd64.deb ...
Unpacking libkrb5support0:amd64 (1.13.2+dfsg-5ubuntu2) ...
Selecting previously unselected package libk5crypto3:amd64.
Preparing to unpack .../libk5crypto3_1.13.2+dfsg-5ubuntu2_amd64.deb ...
Unpacking libk5crypto3:amd64 (1.13.2+dfsg-5ubuntu2) ...
Selecting previously unselected package libkeyutils1:amd64.
Preparing to unpack .../libkeyutils1_1.5.9-8ubuntu1_amd64.deb ...
Unpacking libkeyutils1:amd64 (1.5.9-8ubuntu1) ...
Selecting previously unselected package libkrb5-3:amd64.
Preparing to unpack .../libkrb5-3_1.13.2+dfsg-5ubuntu2_amd64.deb ...
Unpacking libkrb5-3:amd64 (1.13.2+dfsg-5ubuntu2) ...
Selecting previously unselected package libgssapi-krb5-2:amd64.
Preparing to unpack .../libgssapi-krb5-2_1.13.2+dfsg-5ubuntu2_amd64.deb ...
Unpacking libgssapi-krb5-2:amd64 (1.13.2+dfsg-5ubuntu2) ...
Selecting previously unselected package libhcrypto4-heimdal:amd64.
Preparing to unpack .../libhcrypto4-heimdal_1.7~git20150920+dfsg-4ubuntu1.16.04.1_amd64.deb ...
Unpacking libhcrypto4-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Selecting previously unselected package libheimbase1-heimdal:amd64.
Preparing to unpack .../libheimbase1-heimdal_1.7~git20150920+dfsg-4ubuntu1.16.04.1_amd64.deb ...
Unpacking libheimbase1-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Selecting previously unselected package libwind0-heimdal:amd64.
Preparing to unpack .../libwind0-heimdal_1.7~git20150920+dfsg-4ubuntu1.16.04.1_amd64.deb ...
Unpacking libwind0-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Selecting previously unselected package libhx509-5-heimdal:amd64.
Preparing to unpack .../libhx509-5-heimdal_1.7~git20150920+dfsg-4ubuntu1.16.04.1_amd64.deb ...
Unpacking libhx509-5-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Selecting previously unselected package libkrb5-26-heimdal:amd64.
Preparing to unpack .../libkrb5-26-heimdal_1.7~git20150920+dfsg-4ubuntu1.16.04.1_amd64.deb ...
Unpacking libkrb5-26-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Selecting previously unselected package libheimntlm0-heimdal:amd64.
Preparing to unpack .../libheimntlm0-heimdal_1.7~git20150920+dfsg-4ubuntu1.16.04.1_amd64.deb ...
Unpacking libheimntlm0-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Selecting previously unselected package libgssapi3-heimdal:amd64.
Preparing to unpack .../libgssapi3-heimdal_1.7~git20150920+dfsg-4ubuntu1.16.04.1_amd64.deb ...
Unpacking libgssapi3-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Selecting previously unselected package libsasl2-modules-db:amd64.
Preparing to unpack .../libsasl2-modules-db_2.1.26.dfsg1-14build1_amd64.deb ...
Unpacking libsasl2-modules-db:amd64 (2.1.26.dfsg1-14build1) ...
Selecting previously unselected package libsasl2-2:amd64.
Preparing to unpack .../libsasl2-2_2.1.26.dfsg1-14build1_amd64.deb ...
Unpacking libsasl2-2:amd64 (2.1.26.dfsg1-14build1) ...
Selecting previously unselected package libldap-2.4-2:amd64.
Preparing to unpack .../libldap-2.4-2_2.4.42+dfsg-2ubuntu3.2_amd64.deb ...
Unpacking libldap-2.4-2:amd64 (2.4.42+dfsg-2ubuntu3.2) ...
Selecting previously unselected package librtmp1:amd64.
Preparing to unpack .../librtmp1_2.4+20151223.gitfa8646d-1ubuntu0.1_amd64.deb ...
Unpacking librtmp1:amd64 (2.4+20151223.gitfa8646d-1ubuntu0.1) ...
Selecting previously unselected package libcurl3-gnutls:amd64.
Preparing to unpack .../libcurl3-gnutls_7.47.0-1ubuntu2.6_amd64.deb ...
Unpacking libcurl3-gnutls:amd64 (7.47.0-1ubuntu2.6) ...
Selecting previously unselected package libsasl2-modules:amd64.
Preparing to unpack .../libsasl2-modules_2.1.26.dfsg1-14build1_amd64.deb ...
Unpacking libsasl2-modules:amd64 (2.1.26.dfsg1-14build1) ...
Selecting previously unselected package curl.
Preparing to unpack .../curl_7.47.0-1ubuntu2.6_amd64.deb ...
Unpacking curl (7.47.0-1ubuntu2.6) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Setting up libsqlite3-0:amd64 (3.11.0-1ubuntu1) ...
Setting up openssl (1.0.2g-1ubuntu4.10) ...
Setting up ca-certificates (20170717~16.04.1) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Setting up krb5-locales (1.13.2+dfsg-5ubuntu2) ...
Setting up libroken18-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Setting up libasn1-8-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Setting up libkrb5support0:amd64 (1.13.2+dfsg-5ubuntu2) ...
Setting up libk5crypto3:amd64 (1.13.2+dfsg-5ubuntu2) ...
Setting up libkeyutils1:amd64 (1.5.9-8ubuntu1) ...
Setting up libkrb5-3:amd64 (1.13.2+dfsg-5ubuntu2) ...
Setting up libgssapi-krb5-2:amd64 (1.13.2+dfsg-5ubuntu2) ...
Setting up libhcrypto4-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Setting up libheimbase1-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Setting up libwind0-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Setting up libhx509-5-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Setting up libkrb5-26-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Setting up libheimntlm0-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Setting up libgssapi3-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Setting up libsasl2-modules-db:amd64 (2.1.26.dfsg1-14build1) ...
Setting up libsasl2-2:amd64 (2.1.26.dfsg1-14build1) ...
Setting up libldap-2.4-2:amd64 (2.4.42+dfsg-2ubuntu3.2) ...
Setting up librtmp1:amd64 (2.4+20151223.gitfa8646d-1ubuntu0.1) ...
Setting up libcurl3-gnutls:amd64 (7.47.0-1ubuntu2.6) ...
Setting up libsasl2-modules:amd64 (2.1.26.dfsg1-14build1) ...
Setting up curl (7.47.0-1ubuntu2.6) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for ca-certificates (20170717~16.04.1) ...
Updating certificates in /etc/ssl/certs...
148 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
---> ea5e17831a6e
Removing intermediate container ac4c73f1c28a
Step 8/9 : EXPOSE 80
---> Running in 3e82e3637b84
---> 200aa4e57284
Removing intermediate container 3e82e3637b84
Step 9/9 : CMD /bin/bash
---> Running in 02097f666007
---> b26656009c55
Removing intermediate container 02097f666007
Successfully built b26656009c55
wangshumin@machine1:~/sinatra$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
wangshumin_docker3 v3 b26656009c55 2 minutes ago 223 MB
wangshumin_docker_ios v2 ad21133ac72c 23 minutes ago 223 MB
wangshumin_docker_ios vquan1 046df95f7e2c 43 minutes ago 213 MB
wangshumin_docker v4 046df95f7e2c 43 minutes ago 213 MB
wangshumin20180308 v2 bf24fd772192 2 hours ago 112 MB
wangshumin20180308 v1 c4e15d1c5fe1 2 hours ago 115 MB
wangshumibee v5 7e6c629767b7 27 hours ago 433 MB
ouruser/sinatra v3 54c944850825 27 hours ago 208 MB
centos latest 2d194b392dd1 2 days ago 195 MB
ubuntu latest 0458a4468cbc 5 weeks ago 112 MB
training/webapp latest 6fae60ef3446 2 years ago 349 MB
wangshumin@machine1:~/sinatra$ docker run -it -d -p 47:48 --name dockerquan2 wangshumin_docker_ios:vquan1 /bin/bash
docker: Error response from daemon: Conflict. The container name "/dockerquan2" is already in use by container ec13f1b24435df033193c56e6079612e676f16188b19bb79049a454ae7081254. You have to remove (or rename) that container to be able to reuse that name..
See 'docker run --help'.
wangshumin@machine1:~/sinatra$ docker run -it -d -p 30:31 --name dockerquan01 wangshumin_docker3:v3 /bin/bash
78c3b1a95a2da97adc63c3381ef5d35502ba21022e57221fd6e9400e20124e70
wangshumin@machine1:~/sinatra$ docker run -it -d -p 32:33 --name dockerquan02 wangshumin_docker3:v3 /bin/bash
04315161740c802e881a77fedf4450023032972ac02603795e9f40edb4b0e919
wangshumin@machine1:~/sinatra$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
04315161740c wangshumin_docker3:v3 "/bin/bash" 19 seconds ago Up 17 seconds 80/tcp, 0.0.0.0:32->33/tcp dockerquan02
78c3b1a95a2d wangshumin_docker3:v3 "/bin/bash" 35 seconds ago Up 34 seconds 80/tcp, 0.0.0.0:30->31/tcp dockerquan01
ec13f1b24435 wangshumin_docker_ios:vquan1 "/bin/bash" 20 minutes ago Up 20 minutes 80/tcp, 0.0.0.0:47->48/tcp dockerquan2
c6991814d327 wangshumin_docker_ios:vquan1 "/bin/bash" 21 minutes ago Up 21 minutes 80/tcp, 0.0.0.0:45->46/tcp dockerquan3
24569adfb362 wangshumin_docker_ios:vquan1 "/bin/bash" 22 minutes ago Up 22 minutes 80/tcp, 0.0.0.0:44->45/tcp dockerquan1
2a8822ad5553 wangshumin_docker:v4 "/bin/bash" 34 minutes ago Up 34 minutes 80/tcp, 0.0.0.0:42->43/tcp docker3
46b2a14bd2b2 wangshumin_docker:v4 "/bin/bash" 40 minutes ago Up 40 minutes 80/tcp, 0.0.0.0:40->41/tcp docker1
395f2d60ae08 wangshumin20180308:v2 "/bin/bash" 2 hours ago Up 2 hours 4041/tcp, 0.0.0.0:8080->8081/tcp content2
43a7706f7a25 ubuntu "/bin/bash" 3 hours ago Up 3 hours mwt2
a5faa23cdf4b ubuntu "/bin/bash" 4 hours ago Up 3 hours mwt1
wangshumin@machine1:~/sinatra$ docker attach 04315161740c
root@04315161740c:/#
root@04315161740c:/#
root@04315161740c:/#
root@04315161740c:/# curl
curl: try 'curl --help' or 'curl --manual' for more information
root@04315161740c:/# ping
Usage: ping [-aAbBdDfhLnOqrRUvV] [-c count] [-i interval] [-I interface]
[-m mark] [-M pmtudisc_option] [-l preload] [-p pattern] [-Q tos]
[-s packetsize] [-S sndbuf] [-t ttl] [-T timestamp_option]
[-w deadline] [-W timeout] [hop1 ...] destination
root@04315161740c:/# ^C
root@04315161740c:/# wangshumin@machine1:~/sinatra$
wangshumin@machine1:~/sinatra$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
wangshumin_docker3 v3 b26656009c55 6 minutes ago 223 MB
wangshumin_docker_ios v2 ad21133ac72c 27 minutes ago 223 MB
wangshumin_docker v4 046df95f7e2c 47 minutes ago 213 MB
wangshumin_docker_ios vquan1 046df95f7e2c 47 minutes ago 213 MB
wangshumin20180308 v2 bf24fd772192 2 hours ago 112 MB
wangshumin20180308 v1 c4e15d1c5fe1 2 hours ago 115 MB
wangshumibee v5 7e6c629767b7 27 hours ago 433 MB
ouruser/sinatra v3 54c944850825 28 hours ago 208 MB
centos latest 2d194b392dd1 2 days ago 195 MB
ubuntu latest 0458a4468cbc 5 weeks ago 112 MB
training/webapp latest 6fae60ef3446 2 years ago 349 MB
wangshumin@machine1:~/sinatra$ docker rmi 046df95f7e2c
Error response from daemon: conflict: unable to delete 046df95f7e2c (cannot be forced) - image is being used by running container 46b2a14bd2b2
wangshumin@machine1:~/sinatra$ wangshumin_docker_ios:vquan1
wangshumin_docker_ios:vquan1:未找到命令
wangshumin@machine1:~/sinatra$ docker rmi wangshumin_docker_ios:vquan1
Untagged: wangshumin_docker_ios:vquan1
wangshumin@machine1:~/sinatra$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
wangshumin_docker3 v3 b26656009c55 7 minutes ago 223 MB
wangshumin_docker_ios v2 ad21133ac72c 28 minutes ago 223 MB
wangshumin_docker v4 046df95f7e2c 48 minutes ago 213 MB
wangshumin20180308 v2 bf24fd772192 2 hours ago 112 MB
wangshumin20180308 v1 c4e15d1c5fe1 2 hours ago 115 MB
wangshumibee v5 7e6c629767b7 27 hours ago 433 MB
ouruser/sinatra v3 54c944850825 28 hours ago 208 MB
centos latest 2d194b392dd1 2 days ago 195 MB
ubuntu latest 0458a4468cbc 5 weeks ago 112 MB
training/webapp latest 6fae60ef3446 2 years ago 349 MB
wangshumin@machine1:~/sinatra$ docker rmi wangshumin_docker_ios:v2
Untagged: wangshumin_docker_ios:v2
Deleted: sha256:ad21133ac72c1116ef3b55bdcb4bd6a7eea1512f9591215614a986c3afc72a8d
Deleted: sha256:7c6312a54ebdd606281490dabe92dbeb139ce4ace9ac700578f07b1f3bf9e8f8
Deleted: sha256:e588d3b3c8154005b88eb8d9f988577c9528c3401796711a5bb98a1467b9ad80
Deleted: sha256:ceb7c5047b83439801982189a6f41ebf2dc4f1ab71556576fa947529aa18b6f7
wangshumin@machine1:~/sinatra$ docker rmi wangshumin_docker:v4
Error response from daemon: conflict: unable to remove repository reference "wangshumin_docker:v4" (must force) - container 46b2a14bd2b2 is using its referenced image 046df95f7e2c
wangshumin@machine1:~/sinatra$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
wangshumin_docker3 v3 b26656009c55 8 minutes ago 223 MB
wangshumin_docker v4 046df95f7e2c 49 minutes ago 213 MB
wangshumin20180308 v2 bf24fd772192 2 hours ago 112 MB
wangshumin20180308 v1 c4e15d1c5fe1 2 hours ago 115 MB
wangshumibee v5 7e6c629767b7 27 hours ago 433 MB
ouruser/sinatra v3 54c944850825 28 hours ago 208 MB
centos latest 2d194b392dd1 2 days ago 195 MB
ubuntu latest 0458a4468cbc 5 weeks ago 112 MB
training/webapp latest 6fae60ef3446 2 years ago 349 MB
wangshumin@machine1:~/sinatra$ docker rmi wangshumin_docker:v4
Error response from daemon: conflict: unable to remove repository reference "wangshumin_docker:v4" (must force) - container 24569adfb362 is using its referenced image 046df95f7e2c
wangshumin@machine1:~/sinatra$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
wangshumin_docker3 v3 b26656009c55 8 minutes ago 223 MB
wangshumin_docker v4 046df95f7e2c 49 minutes ago 213 MB
wangshumin20180308 v2 bf24fd772192 2 hours ago 112 MB
wangshumin20180308 v1 c4e15d1c5fe1 2 hours ago 115 MB
wangshumibee v5 7e6c629767b7 27 hours ago 433 MB
ouruser/sinatra v3 54c944850825 28 hours ago 208 MB
centos latest 2d194b392dd1 2 days ago 195 MB
ubuntu latest 0458a4468cbc 5 weeks ago 112 MB
training/webapp latest 6fae60ef3446 2 years ago 349 MB
wangshumin@machine1:~/sinatra$ docker rmi wangshumibee:v5
Error response from daemon: conflict: unable to remove repository reference "wangshumibee:v5" (must force) - container 3abaf87ce81c is using its referenced image 7e6c629767b7
wangshumin@machine1:~/sinatra$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
wangshumin_docker3 v3 b26656009c55 8 minutes ago 223 MB
wangshumin_docker v4 046df95f7e2c 50 minutes ago 213 MB
wangshumin20180308 v2 bf24fd772192 2 hours ago 112 MB
wangshumin20180308 v1 c4e15d1c5fe1 2 hours ago 115 MB
wangshumibee v5 7e6c629767b7 27 hours ago 433 MB
ouruser/sinatra v3 54c944850825 28 hours ago 208 MB
centos latest 2d194b392dd1 2 days ago 195 MB
ubuntu latest 0458a4468cbc 5 weeks ago 112 MB
training/webapp latest 6fae60ef3446 2 years ago 349 MB
wangshumin@machine1:~/sinatra$ docker rm 3abaf87ce81c
3abaf87ce81c
wangshumin@machine1:~/sinatra$ docker rmi wangshumibee:v5
Error response from daemon: conflict: unable to remove repository reference "wangshumibee:v5" (must force) - container 94fdb646aa98 is using its referenced image 7e6c629767b7
wangshumin@machine1:~/sinatra$ docker rm 94fdb646aa98
94fdb646aa98
wangshumin@machine1:~/sinatra$ docker rmi wangshumibee:v5
Error response from daemon: conflict: unable to remove repository reference "wangshumibee:v5" (must force) - container 645eb135fd01 is using its referenced image 7e6c629767b7
wangshumin@machine1:~/sinatra$ docker rm 645eb135fd01
645eb135fd01
wangshumin@machine1:~/sinatra$ docker rmi wangshumibee:v5
Untagged: wangshumibee:v5
Deleted: sha256:7e6c629767b732d6dccbb2e09049df299d01a4a3f11a599136d143f9b26a8a22
Deleted: sha256:702dc001f1b9ec746d408e834aa1699c00f2a630cb41cc7c59302a78ccdc020d
Deleted: sha256:d3758f4b57482354772dfa4f7935ba546105f7ebc57e50498355022a6203acee
wangshumin@machine1:~/sinatra$
wangshumin@machine1:~/sinatra$
wangshumin@machine1:~/sinatra$
wangshumin@machine1:~/sinatra$
更多推荐
已为社区贡献12条内容
所有评论(0)