LoginSignup
6
6

More than 5 years have passed since last update.

MacでDocker(boot2docker)

Last updated at Posted at 2015-03-31

Mac OS X Yosemite 10.10.2でdockerのインストール

$ brew update
$ brew install docker boot2docker
$ boot2docker init
$ boot2docker up
Waiting for VM and Docker daemon to start...
........................oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
Started.
  Trying to get Docker socket one more time
Error requesting socket: exit status 2
Writing /Users/<user>/.boot2docker/certs/boot2docker-vm/ca.pem
Writing /Users/<user>/.boot2docker/certs/boot2docker-vm/cert.pem
Writing /Users/<user>/.boot2docker/certs/boot2docker-vm/key.pem
Auto detection of the VM's Docker socket failed.
Please run `boot2docker -v up` to diagnose. 

なんかエラーっぽい・・・原因は何だろう?最初は分からず進めていたがどうもdockerに繋がらない様なメッセージが出たのでググるとdown,delete,init後にboot2docker -v up

$ boot2docker down
$ boot2docker delete
$ boot2docker init
$ boot2docker -v up
Boot2Docker-cli version: v1.5.0
Git commit: ccd9032
2015/04/01 01:56:29 executing: VBoxManage showvminfo boot2docker-vm --machinereadable
error in run: Failed to get machine "boot2docker-vm": machine not exist
$ boot2docker init
$ boot2docker -v up
Boot2Docker-cli version: v1.5.0
Git commit: ccd9032
2015/04/01 01:56:54 executing: VBoxManage showvminfo boot2docker-vm --machinereadable
2015/04/01 01:56:54 executing: VBoxManage guestproperty set boot2docker-vm /VirtualBox/GuestAdd/SharedFolders/MountPrefix /
2015/04/01 01:56:54 executing: VBoxManage guestproperty set boot2docker-vm /VirtualBox/GuestAdd/SharedFolders/MountDir /
2015/04/01 01:56:54 executing: VBoxManage sharedfolder add boot2docker-vm --name Users --hostpath /Users --automount
2015/04/01 01:56:54 executing: VBoxManage setextradata boot2docker-vm VBoxInternal2/SharedFoldersEnableSymlinksCreate/Users 1
2015/04/01 01:56:54 executing: VBoxManage startvm boot2docker-vm --type headless
Waiting for VM "boot2docker-vm" to power on...
VM "boot2docker-vm" has been successfully started.
2015/04/01 01:56:55 executing: VBoxManage showvminfo boot2docker-vm --machinereadable
Waiting for VM and Docker daemon to start...
.Connecting to tcp://localhost:2022 (attempt #0).Connecting to tcp://localhost:2022 (attempt #0).Connecting to tcp://localhost:2022 (attempt #0).Connecting to tcp://localhost:2022 (attempt #0).Connecting to tcp://localhost:2022 (attempt #0).Connecting to tcp://localhost:2022 (attempt #0).Connecting to tcp://localhost:2022 (attempt #0).Connecting to tcp://localhost:2022 (attempt #0).Connecting to tcp://localhost:2022 (attempt #0).Connecting to tcp://localhost:2022 (attempt #0).Connecting to tcp://localhost:2022 (attempt #0).Connecting to tcp://localhost:2022 (attempt #0).Connecting to tcp://localhost:2022 (attempt #0).Connecting to tcp://localhost:2022 (attempt #0).Connecting to tcp://localhost:2022 (attempt #0).Connecting to tcp://localhost:2022 (attempt #0).Connecting to tcp://localhost:2022 (attempt #0).Connecting to tcp://localhost:2022 (attempt #0).Connecting to tcp://localhost:2022 (attempt #0).Connecting to tcp://localhost:2022 (attempt #0).Connecting to tcp://localhost:2022 (attempt #0).Connecting to tcp://localhost:2022 (attempt #0)2015/04/01 01:57:16 executing: /usr/bin/ssh ssh -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -p 2022 -i /Users/<user>/.ssh/id_boot2docker docker@localhost ip addr show dev eth1
SSH returned: 4: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 08:00:27:b3:95:a4 brd ff:ff:ff:ff:ff:ff
    inet 192.168.59.103/24 brd 192.168.59.255 scope global eth1
       valid_lft forever preferred_lft forever
    inet6 fe80::a00:27ff:feb3:95a4/64 scope link tentative 
       valid_lft forever preferred_lft forever

END SSH
VM Host-only IP address: 192.168.59.103
Waiting for Docker daemon to start...
o2015/04/01 01:57:17 executing: /usr/bin/ssh ssh -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -p 2022 -i /Users/<user>/.ssh/id_boot2docker docker@localhost grep tcp:// /proc/$(cat /var/run/docker.pid)/cmdline
cat: can't open '/var/run/docker.pid': No such file or directory
Error requesting socket: exit status 1
o2015/04/01 01:57:18 executing: /usr/bin/ssh ssh -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -p 2022 -i /Users/<user>/.ssh/id_boot2docker docker@localhost grep tcp:// /proc/$(cat /var/run/docker.pid)/cmdline
cat: can't open '/var/run/docker.pid': No such file or directory

      :
    <中略>
      :

Error requesting socket: exit status 1
o2015/04/01 01:57:25 executing: /usr/bin/ssh ssh -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -p 2022 -i /Users/<user>/.ssh/id_boot2docker docker@localhost grep tcp:// /proc/$(cat /var/run/docker.pid)/cmdline
SSH returned: tcp://0.0.0.0:2376

END SSH
2015/04/01 01:57:25 executing: /usr/bin/ssh ssh -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -p 2022 -i /Users/<user>/.ssh/id_boot2docker docker@localhost ip addr show dev eth1
SSH returned: 4: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 08:00:27:b3:95:a4 brd ff:ff:ff:ff:ff:ff
    inet 192.168.59.103/24 brd 192.168.59.255 scope global eth1
       valid_lft forever preferred_lft forever
    inet6 fe80::a00:27ff:feb3:95a4/64 scope link 
       valid_lft forever preferred_lft forever

END SSH

Started.
2015/04/01 01:57:25 executing: /usr/bin/ssh ssh -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -p 2022 -i /Users/<user>/.ssh/id_boot2docker docker@localhost tar c /home/docker/.docker/*.pem
tar: Removing leading `/' from member names
Writing /Users/<user>/.boot2docker/certs/boot2docker-vm/ca.pem
Writing /Users/<user>/.boot2docker/certs/boot2docker-vm/cert.pem
Writing /Users/<user>/.boot2docker/certs/boot2docker-vm/key.pem

To connect the Docker client to the Docker daemon, please set:
    export DOCKER_TLS_VERIFY=1
    export DOCKER_HOST=tcp://192.168.59.103:2376
    export DOCKER_CERT_PATH=/Users/<user>/.boot2docker/certs/boot2docker-vm

exportが出ていれば正常に入ったっぽい。
上記export.bash_profileに追記する。

とりあえずcentos 6系を落とす

$ docker pull centos:6.6
511136ea3c5a: Pull complete 
5b12ef8fd570: Pull complete 
0bc55ae673f7: Pull complete 
centos:6.6: The image you are pulling has been verified. Important: image verification is a tech preview feature and should not be relied on to provide security.
Status: Downloaded newer image for centos:6.6
$ docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
centos              6.6                 0bc55ae673f7        3 weeks ago         202.6 MB

最初にyum updateをかける

$ docker run -it centos:6.6 bash
[root@d8220aff7114 /]# yum update
Loaded plugins: fastestmirror
Setting up Update Process
base                                                                                                                                     | 3.7 kB     00:00     
base/primary_db                                                                                                                          | 4.6 MB     00:01     
extras                                                                                                                                   | 3.4 kB     00:00     
extras/primary_db                                                                                                                        |  30 kB     00:00     
updates                                                                                                                                  | 3.4 kB     00:00     
updates/primary_db                                                                                                                       | 2.7 MB     00:01     
Resolving Dependencies
--> Running transaction check
---> Package bind-libs.x86_64 32:9.8.2-0.30.rc1.el6 will be updated
---> Package bind-libs.x86_64 32:9.8.2-0.30.rc1.el6_6.2 will be an update
---> Package bind-utils.x86_64 32:9.8.2-0.30.rc1.el6 will be updated
---> Package bind-utils.x86_64 32:9.8.2-0.30.rc1.el6_6.2 will be an update
---> Package curl.x86_64 0:7.19.7-37.el6_5.3 will be updated
---> Package curl.x86_64 0:7.19.7-40.el6_6.4 will be an update
---> Package cyrus-sasl-lib.x86_64 0:2.1.23-15.el6 will be updated
---> Package cyrus-sasl-lib.x86_64 0:2.1.23-15.el6_6.2 will be an update
---> Package glibc.x86_64 0:2.12-1.149.el6 will be updated
---> Package glibc.x86_64 0:2.12-1.149.el6_6.5 will be an update
---> Package glibc-common.x86_64 0:2.12-1.149.el6 will be updated
---> Package glibc-common.x86_64 0:2.12-1.149.el6_6.5 will be an update
---> Package initscripts.x86_64 0:9.03.46-1.el6.centos will be updated
---> Package initscripts.x86_64 0:9.03.46-1.el6.centos.1 will be an update
---> Package iproute.x86_64 0:2.6.32-32.el6_5 will be updated
---> Package iproute.x86_64 0:2.6.32-33.el6_6 will be an update
---> Package libcurl.x86_64 0:7.19.7-37.el6_5.3 will be updated
---> Package libcurl.x86_64 0:7.19.7-40.el6_6.4 will be an update
---> Package libssh2.x86_64 0:1.4.2-1.el6 will be updated
---> Package libssh2.x86_64 0:1.4.2-1.el6_6.1 will be an update
---> Package libxml2.x86_64 0:2.7.6-14.el6_5.2 will be updated
---> Package libxml2.x86_64 0:2.7.6-17.el6_6.1 will be an update
---> Package nss.x86_64 0:3.16.1-14.el6 will be updated
---> Package nss.x86_64 0:3.16.2.3-3.el6_6 will be an update
---> Package nss-softokn.x86_64 0:3.14.3-17.el6 will be updated
---> Package nss-softokn.x86_64 0:3.14.3-22.el6_6 will be an update
---> Package nss-softokn-freebl.x86_64 0:3.14.3-17.el6 will be updated
---> Package nss-softokn-freebl.x86_64 0:3.14.3-22.el6_6 will be an update
---> Package nss-sysinit.x86_64 0:3.16.1-14.el6 will be updated
---> Package nss-sysinit.x86_64 0:3.16.2.3-3.el6_6 will be an update
---> Package nss-tools.x86_64 0:3.16.1-14.el6 will be updated
---> Package nss-tools.x86_64 0:3.16.2.3-3.el6_6 will be an update
---> Package nss-util.x86_64 0:3.16.1-3.el6 will be updated
---> Package nss-util.x86_64 0:3.16.2.3-2.el6_6 will be an update
---> Package openssl.x86_64 0:1.0.1e-30.el6 will be updated
---> Package openssl.x86_64 0:1.0.1e-30.el6_6.7 will be an update
---> Package policycoreutils.x86_64 0:2.0.83-19.47.el6 will be updated
---> Package policycoreutils.x86_64 0:2.0.83-19.47.el6_6.1 will be an update
---> Package rpm.x86_64 0:4.8.0-37.el6 will be updated
---> Package rpm.x86_64 0:4.8.0-38.el6_6 will be an update
---> Package rpm-libs.x86_64 0:4.8.0-37.el6 will be updated
---> Package rpm-libs.x86_64 0:4.8.0-38.el6_6 will be an update
---> Package rpm-python.x86_64 0:4.8.0-37.el6 will be updated
---> Package rpm-python.x86_64 0:4.8.0-38.el6_6 will be an update
---> Package tzdata.noarch 0:2014g-1.el6 will be updated
---> Package tzdata.noarch 0:2015b-1.el6 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================================================================================================
 Package                                   Arch                          Version                                           Repository                      Size
================================================================================================================================================================
Updating:
 bind-libs                                 x86_64                        32:9.8.2-0.30.rc1.el6_6.2                         updates                        884 k
 bind-utils                                x86_64                        32:9.8.2-0.30.rc1.el6_6.2                         updates                        185 k
 curl                                      x86_64                        7.19.7-40.el6_6.4                                 updates                        194 k
 cyrus-sasl-lib                            x86_64                        2.1.23-15.el6_6.2                                 updates                        136 k
 glibc                                     x86_64                        2.12-1.149.el6_6.5                                updates                        3.8 M
 glibc-common                              x86_64                        2.12-1.149.el6_6.5                                updates                         14 M
 initscripts                               x86_64                        9.03.46-1.el6.centos.1                            updates                        943 k
 iproute                                   x86_64                        2.6.32-33.el6_6                                   updates                        365 k
 libcurl                                   x86_64                        7.19.7-40.el6_6.4                                 updates                        166 k
 libssh2                                   x86_64                        1.4.2-1.el6_6.1                                   updates                        123 k
 libxml2                                   x86_64                        2.7.6-17.el6_6.1                                  updates                        801 k
 nss                                       x86_64                        3.16.2.3-3.el6_6                                  updates                        834 k
 nss-softokn                               x86_64                        3.14.3-22.el6_6                                   updates                        262 k
 nss-softokn-freebl                        x86_64                        3.14.3-22.el6_6                                   updates                        167 k
 nss-sysinit                               x86_64                        3.16.2.3-3.el6_6                                  updates                         44 k
 nss-tools                                 x86_64                        3.16.2.3-3.el6_6                                  updates                        427 k
 nss-util                                  x86_64                        3.16.2.3-2.el6_6                                  updates                         66 k
 openssl                                   x86_64                        1.0.1e-30.el6_6.7                                 updates                        1.5 M
 policycoreutils                           x86_64                        2.0.83-19.47.el6_6.1                              updates                        650 k
 rpm                                       x86_64                        4.8.0-38.el6_6                                    updates                        901 k
 rpm-libs                                  x86_64                        4.8.0-38.el6_6                                    updates                        313 k
 rpm-python                                x86_64                        4.8.0-38.el6_6                                    updates                         57 k
 tzdata                                    noarch                        2015b-1.el6                                       updates                        443 k

Transaction Summary
================================================================================================================================================================
Upgrade      23 Package(s)

Total download size: 27 M
Is this ok [y/N]: y
Downloading Packages:
(1/23): bind-libs-9.8.2-0.30.rc1.el6_6.2.x86_64.rpm                                                                                      | 884 kB     00:00     
(2/23): bind-utils-9.8.2-0.30.rc1.el6_6.2.x86_64.rpm                                                                                     | 185 kB     00:00     
(3/23): curl-7.19.7-40.el6_6.4.x86_64.rpm                                                                                                | 194 kB     00:00     
(4/23): cyrus-sasl-lib-2.1.23-15.el6_6.2.x86_64.rpm                                                                                      | 136 kB     00:00     
(5/23): glibc-2.12-1.149.el6_6.5.x86_64.rpm                                                                                              | 3.8 MB     00:01     
(6/23): glibc-common-2.12-1.149.el6_6.5.x86_64.rpm                                                                                       |  14 MB     00:19     
(7/23): initscripts-9.03.46-1.el6.centos.1.x86_64.rpm                                                                                    | 943 kB     00:00     
(8/23): iproute-2.6.32-33.el6_6.x86_64.rpm                                                                                               | 365 kB     00:00     
(9/23): libcurl-7.19.7-40.el6_6.4.x86_64.rpm                                                                                             | 166 kB     00:00     
(10/23): libssh2-1.4.2-1.el6_6.1.x86_64.rpm                                                                                              | 123 kB     00:00     
(11/23): libxml2-2.7.6-17.el6_6.1.x86_64.rpm                                                                                             | 801 kB     00:00     
(12/23): nss-3.16.2.3-3.el6_6.x86_64.rpm                                                                                                 | 834 kB     00:00     
(13/23): nss-softokn-3.14.3-22.el6_6.x86_64.rpm                                                                                          | 262 kB     00:00     
(14/23): nss-softokn-freebl-3.14.3-22.el6_6.x86_64.rpm                                                                                   | 167 kB     00:00     
(15/23): nss-sysinit-3.16.2.3-3.el6_6.x86_64.rpm                                                                                         |  44 kB     00:00     
(16/23): nss-tools-3.16.2.3-3.el6_6.x86_64.rpm                                                                                           | 427 kB     00:00     
(17/23): nss-util-3.16.2.3-2.el6_6.x86_64.rpm                                                                                            |  66 kB     00:00     
(18/23): openssl-1.0.1e-30.el6_6.7.x86_64.rpm                                                                                            | 1.5 MB     00:00     
(19/23): policycoreutils-2.0.83-19.47.el6_6.1.x86_64.rpm                                                                                 | 650 kB     00:00     
(20/23): rpm-4.8.0-38.el6_6.x86_64.rpm                                                                                                   | 901 kB     00:00     
(21/23): rpm-libs-4.8.0-38.el6_6.x86_64.rpm                                                                                              | 313 kB     00:00     
(22/23): rpm-python-4.8.0-38.el6_6.x86_64.rpm                                                                                            |  57 kB     00:00     
(23/23): tzdata-2015b-1.el6.noarch.rpm                                                                                                   | 443 kB     00:00     
----------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                           1.0 MB/s |  27 MB     00:27     
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Importing GPG key 0xC105B9DE:
 Userid : CentOS-6 Key (CentOS 6 Official Signing Key) <centos-6-key@centos.org>
 Package: centos-release-6-6.el6.centos.12.2.x86_64 (@CentOS/$releasever)
 From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Is this ok [y/N]: y                
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Updating   : tzdata-2015b-1.el6.noarch                                                                                                                   1/46 
  Updating   : glibc-common-2.12-1.149.el6_6.5.x86_64                                                                                                      2/46 
  Updating   : glibc-2.12-1.149.el6_6.5.x86_64                                                                                                             3/46 
  Updating   : nss-softokn-freebl-3.14.3-22.el6_6.x86_64                                                                                                   4/46 
  Updating   : nss-util-3.16.2.3-2.el6_6.x86_64                                                                                                            5/46 
  Updating   : openssl-1.0.1e-30.el6_6.7.x86_64                                                                                                            6/46 
  Updating   : libssh2-1.4.2-1.el6_6.1.x86_64                                                                                                              7/46 
  Updating   : nss-softokn-3.14.3-22.el6_6.x86_64                                                                                                          8/46 
  Updating   : nss-sysinit-3.16.2.3-3.el6_6.x86_64                                                                                                         9/46 
  Updating   : nss-3.16.2.3-3.el6_6.x86_64                                                                                                                10/46 
  Updating   : libxml2-2.7.6-17.el6_6.1.x86_64                                                                                                            11/46 
  Updating   : 32:bind-libs-9.8.2-0.30.rc1.el6_6.2.x86_64                                                                                                 12/46 
  Updating   : libcurl-7.19.7-40.el6_6.4.x86_64                                                                                                           13/46 
  Updating   : curl-7.19.7-40.el6_6.4.x86_64                                                                                                              14/46 
  Updating   : rpm-4.8.0-38.el6_6.x86_64                                                                                                                  15/46 
  Updating   : rpm-libs-4.8.0-38.el6_6.x86_64                                                                                                             16/46 
  Updating   : iproute-2.6.32-33.el6_6.x86_64                                                                                                             17/46 
  Updating   : initscripts-9.03.46-1.el6.centos.1.x86_64                                                                                                  18/46 
  Updating   : policycoreutils-2.0.83-19.47.el6_6.1.x86_64                                                                                                19/46 
  Updating   : rpm-python-4.8.0-38.el6_6.x86_64                                                                                                           20/46 
  Updating   : 32:bind-utils-9.8.2-0.30.rc1.el6_6.2.x86_64                                                                                                21/46 
  Updating   : nss-tools-3.16.2.3-3.el6_6.x86_64                                                                                                          22/46 
  Updating   : cyrus-sasl-lib-2.1.23-15.el6_6.2.x86_64                                                                                                    23/46 
  Cleanup    : 32:bind-utils-9.8.2-0.30.rc1.el6.x86_64                                                                                                    24/46 
  Cleanup    : nss-tools-3.16.1-14.el6.x86_64                                                                                                             25/46 
  Cleanup    : rpm-python-4.8.0-37.el6.x86_64                                                                                                             26/46 
  Cleanup    : 32:bind-libs-9.8.2-0.30.rc1.el6.x86_64                                                                                                     27/46 
  Cleanup    : policycoreutils-2.0.83-19.47.el6.x86_64                                                                                                    28/46 
  Cleanup    : rpm-libs-4.8.0-37.el6.x86_64                                                                                                               29/46 
  Cleanup    : rpm-4.8.0-37.el6.x86_64                                                                                                                    30/46 
  Cleanup    : curl-7.19.7-37.el6_5.3.x86_64                                                                                                              31/46 
  Cleanup    : libcurl-7.19.7-37.el6_5.3.x86_64                                                                                                           32/46 
  Cleanup    : nss-sysinit-3.16.1-14.el6.x86_64                                                                                                           33/46 
  Cleanup    : nss-3.16.1-14.el6.x86_64                                                                                                                   34/46 
  Cleanup    : nss-softokn-3.14.3-17.el6.x86_64                                                                                                           35/46 
  Cleanup    : libssh2-1.4.2-1.el6.x86_64                                                                                                                 36/46 
  Cleanup    : initscripts-9.03.46-1.el6.centos.x86_64                                                                                                    37/46 
  Cleanup    : iproute-2.6.32-32.el6_5.x86_64                                                                                                             38/46 
  Cleanup    : openssl-1.0.1e-30.el6.x86_64                                                                                                               39/46 
  Cleanup    : nss-util-3.16.1-3.el6.x86_64                                                                                                               40/46 
  Cleanup    : libxml2-2.7.6-14.el6_5.2.x86_64                                                                                                            41/46 
  Cleanup    : cyrus-sasl-lib-2.1.23-15.el6.x86_64                                                                                                        42/46 
  Cleanup    : glibc-common-2.12-1.149.el6.x86_64                                                                                                         43/46 
  Cleanup    : nss-softokn-freebl-3.14.3-17.el6.x86_64                                                                                                    44/46 
  Cleanup    : glibc-2.12-1.149.el6.x86_64                                                                                                                45/46 
  Cleanup    : tzdata-2014g-1.el6.noarch                                                                                                                  46/46 
  Verifying  : nss-util-3.16.2.3-2.el6_6.x86_64                                                                                                            1/46 
  Verifying  : libcurl-7.19.7-40.el6_6.4.x86_64                                                                                                            2/46 
  Verifying  : openssl-1.0.1e-30.el6_6.7.x86_64                                                                                                            3/46 
  Verifying  : curl-7.19.7-40.el6_6.4.x86_64                                                                                                               4/46 
  Verifying  : libxml2-2.7.6-17.el6_6.1.x86_64                                                                                                             5/46 
  Verifying  : nss-sysinit-3.16.2.3-3.el6_6.x86_64                                                                                                         6/46 
  Verifying  : nss-tools-3.16.2.3-3.el6_6.x86_64                                                                                                           7/46 
  Verifying  : nss-softokn-3.14.3-22.el6_6.x86_64                                                                                                          8/46 
  Verifying  : nss-softokn-freebl-3.14.3-22.el6_6.x86_64                                                                                                   9/46 
  Verifying  : policycoreutils-2.0.83-19.47.el6_6.1.x86_64                                                                                                10/46 
  Verifying  : initscripts-9.03.46-1.el6.centos.1.x86_64                                                                                                  11/46 
  Verifying  : 32:bind-utils-9.8.2-0.30.rc1.el6_6.2.x86_64                                                                                                12/46 
  Verifying  : glibc-common-2.12-1.149.el6_6.5.x86_64                                                                                                     13/46 
  Verifying  : rpm-python-4.8.0-38.el6_6.x86_64                                                                                                           14/46 
  Verifying  : rpm-4.8.0-38.el6_6.x86_64                                                                                                                  15/46 
  Verifying  : rpm-libs-4.8.0-38.el6_6.x86_64                                                                                                             16/46 
  Verifying  : iproute-2.6.32-33.el6_6.x86_64                                                                                                             17/46 
  Verifying  : libssh2-1.4.2-1.el6_6.1.x86_64                                                                                                             18/46 
  Verifying  : cyrus-sasl-lib-2.1.23-15.el6_6.2.x86_64                                                                                                    19/46 
  Verifying  : glibc-2.12-1.149.el6_6.5.x86_64                                                                                                            20/46 
  Verifying  : nss-3.16.2.3-3.el6_6.x86_64                                                                                                                21/46 
  Verifying  : tzdata-2015b-1.el6.noarch                                                                                                                  22/46 
  Verifying  : 32:bind-libs-9.8.2-0.30.rc1.el6_6.2.x86_64                                                                                                 23/46 
  Verifying  : curl-7.19.7-37.el6_5.3.x86_64                                                                                                              24/46 
  Verifying  : nss-sysinit-3.16.1-14.el6.x86_64                                                                                                           25/46 
  Verifying  : iproute-2.6.32-32.el6_5.x86_64                                                                                                             26/46 
  Verifying  : 32:bind-utils-9.8.2-0.30.rc1.el6.x86_64                                                                                                    27/46 
  Verifying  : rpm-python-4.8.0-37.el6.x86_64                                                                                                             28/46 
  Verifying  : glibc-2.12-1.149.el6.x86_64                                                                                                                29/46 
  Verifying  : libssh2-1.4.2-1.el6.x86_64                                                                                                                 30/46 
  Verifying  : libxml2-2.7.6-14.el6_5.2.x86_64                                                                                                            31/46 
  Verifying  : openssl-1.0.1e-30.el6.x86_64                                                                                                               32/46 
  Verifying  : initscripts-9.03.46-1.el6.centos.x86_64                                                                                                    33/46 
  Verifying  : 32:bind-libs-9.8.2-0.30.rc1.el6.x86_64                                                                                                     34/46 
  Verifying  : tzdata-2014g-1.el6.noarch                                                                                                                  35/46 
  Verifying  : nss-3.16.1-14.el6.x86_64                                                                                                                   36/46 
  Verifying  : nss-tools-3.16.1-14.el6.x86_64                                                                                                             37/46 
  Verifying  : nss-softokn-freebl-3.14.3-17.el6.x86_64                                                                                                    38/46 
  Verifying  : nss-softokn-3.14.3-17.el6.x86_64                                                                                                           39/46 
  Verifying  : rpm-libs-4.8.0-37.el6.x86_64                                                                                                               40/46 
  Verifying  : rpm-4.8.0-37.el6.x86_64                                                                                                                    41/46 
  Verifying  : policycoreutils-2.0.83-19.47.el6.x86_64                                                                                                    42/46 
  Verifying  : libcurl-7.19.7-37.el6_5.3.x86_64                                                                                                           43/46 
  Verifying  : glibc-common-2.12-1.149.el6.x86_64                                                                                                         44/46 
  Verifying  : nss-util-3.16.1-3.el6.x86_64                                                                                                               45/46 
  Verifying  : cyrus-sasl-lib-2.1.23-15.el6.x86_64                                                                                                        46/46 

Updated:
  bind-libs.x86_64 32:9.8.2-0.30.rc1.el6_6.2             bind-utils.x86_64 32:9.8.2-0.30.rc1.el6_6.2          curl.x86_64 0:7.19.7-40.el6_6.4                  
  cyrus-sasl-lib.x86_64 0:2.1.23-15.el6_6.2              glibc.x86_64 0:2.12-1.149.el6_6.5                    glibc-common.x86_64 0:2.12-1.149.el6_6.5         
  initscripts.x86_64 0:9.03.46-1.el6.centos.1            iproute.x86_64 0:2.6.32-33.el6_6                     libcurl.x86_64 0:7.19.7-40.el6_6.4               
  libssh2.x86_64 0:1.4.2-1.el6_6.1                       libxml2.x86_64 0:2.7.6-17.el6_6.1                    nss.x86_64 0:3.16.2.3-3.el6_6                    
  nss-softokn.x86_64 0:3.14.3-22.el6_6                   nss-softokn-freebl.x86_64 0:3.14.3-22.el6_6          nss-sysinit.x86_64 0:3.16.2.3-3.el6_6            
  nss-tools.x86_64 0:3.16.2.3-3.el6_6                    nss-util.x86_64 0:3.16.2.3-2.el6_6                   openssl.x86_64 0:1.0.1e-30.el6_6.7               
  policycoreutils.x86_64 0:2.0.83-19.47.el6_6.1          rpm.x86_64 0:4.8.0-38.el6_6                          rpm-libs.x86_64 0:4.8.0-38.el6_6                 
  rpm-python.x86_64 0:4.8.0-38.el6_6                     tzdata.noarch 0:2015b-1.el6                         

Complete!

これをcentos:6.6としてコミット

$ docker ps -a
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS                     PORTS               NAMES
d8220aff7114        centos:6.6          "bash"              25 minutes ago      Exited (0) 7 seconds ago                       goofy_payne         
$ docker commit d8220aff7114 centos:6.6
c91ccb3a5151cbb3a594bf3d9316bf164d04cff0da26a1adc109132c3a7d9964
$ docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
centos              6.6                 c91ccb3a5151        9 seconds ago       403.3 MB
6
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
6