読者です 読者をやめる 読者になる 読者になる

AKAI TSUKI

System development or Technical something

install docker 1.13 on CentOS 7

I try to install docker 1.13 on CentOS 7.

(Reference) https://docs.docker.com/engine/installation/linux/centos/

add repo to yum

[vagrant@localhost ~]$ sudo yum install -y yum-utils
Loaded plugins: fastestmirror
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
base                                                                        | 3.6 kB  00:00:00
epel/x86_64/metalink                                                        | 5.7 kB  00:00:00
epel                                                                        | 4.3 kB  00:00:00
extras                                                                      | 3.4 kB  00:00:00
puppetlabs-pc1                                                              | 2.5 kB  00:00:00
updates                                                                     | 3.4 kB  00:00:00
(1/8): base/7/x86_64/group_gz                                               | 155 kB  00:00:00
(2/8): epel/x86_64/group_gz                                                 | 170 kB  00:00:00
(3/8): epel/x86_64/updateinfo                                               | 730 kB  00:00:00
(4/8): extras/7/x86_64/primary_db                                           | 121 kB  00:00:00
(5/8): puppetlabs-pc1/x86_64/primary_db                                     |  99 kB  00:00:01
(6/8): base/7/x86_64/primary_db                                             | 5.6 MB  00:00:05
(7/8): updates/7/x86_64/primary_db                                          | 2.2 MB  00:00:08
(8/8): epel/x86_64/primary_db                                               | 4.5 MB  00:00:10
Determining fastest mirrors
 * base: www.ftp.ne.jp
 * epel: ftp.riken.jp
 * extras: www.ftp.ne.jp
 * updates: www.ftp.ne.jp
Resolving Dependencies
--> Running transaction check
---> Package yum-utils.noarch 0:1.1.31-40.el7 will be installed
--> Processing Dependency: yum >= 3.4.3-143 for package: yum-utils-1.1.31-40.el7.noarch
--> Processing Dependency: python-kitchen for package: yum-utils-1.1.31-40.el7.noarch
--> Processing Dependency: libxml2-python for package: yum-utils-1.1.31-40.el7.noarch
--> Running transaction check
---> Package libxml2-python.x86_64 0:2.9.1-6.el7_2.3 will be installed
--> Processing Dependency: libxml2 = 2.9.1-6.el7_2.3 for package: libxml2-python-2.9.1-6.el7_2.3.x86_64
---> Package python-kitchen.noarch 0:1.1.1-5.el7 will be installed
--> Processing Dependency: python-chardet for package: python-kitchen-1.1.1-5.el7.noarch
---> Package yum.noarch 0:3.4.3-132.el7.centos.0.1 will be updated
---> Package yum.noarch 0:3.4.3-150.el7.centos will be an update
--> Processing Dependency: python-urlgrabber >= 3.10-8 for package: yum-3.4.3-150.el7.centos.noarch
--> Running transaction check
---> Package libxml2.x86_64 0:2.9.1-6.el7_2.2 will be updated
---> Package libxml2.x86_64 0:2.9.1-6.el7_2.3 will be an update
---> Package python-chardet.noarch 0:2.2.1-1.el7_1 will be installed
---> Package python-urlgrabber.noarch 0:3.10-7.el7 will be updated
---> Package python-urlgrabber.noarch 0:3.10-8.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================
 Package                     Arch             Version                         Repository      Size
===================================================================================================
Installing:
 yum-utils                   noarch           1.1.31-40.el7                   base           116 k
Installing for dependencies:
 libxml2-python              x86_64           2.9.1-6.el7_2.3                 base           247 k
 python-chardet              noarch           2.2.1-1.el7_1                   base           227 k
 python-kitchen              noarch           1.1.1-5.el7                     base           267 k
Updating for dependencies:
 libxml2                     x86_64           2.9.1-6.el7_2.3                 base           668 k
 python-urlgrabber           noarch           3.10-8.el7                      base           108 k
 yum                         noarch           3.4.3-150.el7.centos            base           1.2 M

Transaction Summary
===================================================================================================
Install  1 Package  (+3 Dependent packages)
Upgrade             ( 3 Dependent packages)

Total download size: 2.8 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/7): libxml2-python-2.9.1-6.el7_2.3.x86_64.rpm                            | 247 kB  00:00:00
(2/7): python-chardet-2.2.1-1.el7_1.noarch.rpm                              | 227 kB  00:00:00
(3/7): python-urlgrabber-3.10-8.el7.noarch.rpm                              | 108 kB  00:00:00
(4/7): python-kitchen-1.1.1-5.el7.noarch.rpm                                | 267 kB  00:00:00
(5/7): yum-utils-1.1.31-40.el7.noarch.rpm                                   | 116 kB  00:00:00
(6/7): yum-3.4.3-150.el7.centos.noarch.rpm                                  | 1.2 MB  00:00:00
(7/7): libxml2-2.9.1-6.el7_2.3.x86_64.rpm                                   | 668 kB  00:00:02
---------------------------------------------------------------------------------------------------
Total                                                              1.2 MB/s | 2.8 MB  00:00:02
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : python-urlgrabber-3.10-8.el7.noarch                                            1/10
  Updating   : yum-3.4.3-150.el7.centos.noarch                                                2/10
  Installing : python-chardet-2.2.1-1.el7_1.noarch                                            3/10
  Installing : python-kitchen-1.1.1-5.el7.noarch                                              4/10
  Updating   : libxml2-2.9.1-6.el7_2.3.x86_64                                                 5/10
  Installing : libxml2-python-2.9.1-6.el7_2.3.x86_64                                          6/10
  Installing : yum-utils-1.1.31-40.el7.noarch                                                 7/10
  Cleanup    : yum-3.4.3-132.el7.centos.0.1.noarch                                            8/10
  Cleanup    : python-urlgrabber-3.10-7.el7.noarch                                            9/10
  Cleanup    : libxml2-2.9.1-6.el7_2.2.x86_64                                                10/10
  Verifying  : yum-utils-1.1.31-40.el7.noarch                                                 1/10
  Verifying  : libxml2-2.9.1-6.el7_2.3.x86_64                                                 2/10
  Verifying  : libxml2-python-2.9.1-6.el7_2.3.x86_64                                          3/10
  Verifying  : python-chardet-2.2.1-1.el7_1.noarch                                            4/10
  Verifying  : yum-3.4.3-150.el7.centos.noarch                                                5/10
  Verifying  : python-kitchen-1.1.1-5.el7.noarch                                              6/10
  Verifying  : python-urlgrabber-3.10-8.el7.noarch                                            7/10
  Verifying  : libxml2-2.9.1-6.el7_2.2.x86_64                                                 8/10
  Verifying  : yum-3.4.3-132.el7.centos.0.1.noarch                                            9/10
  Verifying  : python-urlgrabber-3.10-7.el7.noarch                                           10/10

Installed:
  yum-utils.noarch 0:1.1.31-40.el7

Dependency Installed:
  libxml2-python.x86_64 0:2.9.1-6.el7_2.3           python-chardet.noarch 0:2.2.1-1.el7_1
  python-kitchen.noarch 0:1.1.1-5.el7

Dependency Updated:
  libxml2.x86_64 0:2.9.1-6.el7_2.3               python-urlgrabber.noarch 0:3.10-8.el7
  yum.noarch 0:3.4.3-150.el7.centos

Complete!
[vagrant@localhost ~]$ 
[vagrant@localhost ~]$ sudo yum-config-manager \
>     --add-repo \
>     https://docs.docker.com/engine/installation/linux/repo_files/centos/docker.repo
Loaded plugins: fastestmirror
adding repo from: https://docs.docker.com/engine/installation/linux/repo_files/centos/docker.repo
grabbing file https://docs.docker.com/engine/installation/linux/repo_files/centos/docker.repo to /etc/yum.repos.d/docker.repo
repo saved to /etc/yum.repos.d/docker.repo
[vagrant@localhost ~]$
[vagrant@localhost ~]$ sudo yum makecache fast
Loaded plugins: fastestmirror
base                                                                        | 3.6 kB  00:00:00
docker-main                                                                 | 2.9 kB  00:00:00
epel/x86_64/metalink                                                        | 5.7 kB  00:00:00
extras                                                                      | 3.4 kB  00:00:00
puppetlabs-pc1                                                              | 2.5 kB  00:00:00
updates                                                                     | 3.4 kB  00:00:00
docker-main/primary_db                                                      |  28 kB  00:00:01
Loading mirror speeds from cached hostfile
 * base: www.ftp.ne.jp
 * epel: ftp.riken.jp
 * extras: www.ftp.ne.jp
 * updates: www.ftp.ne.jp
Metadata Cache Created
[vagrant@localhost ~]$

install

[vagrant@localhost ~]$ sudo yum -y install docker-engine
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: www.ftp.ne.jp
 * epel: ftp.riken.jp
 * extras: www.ftp.ne.jp
 * updates: www.ftp.ne.jp
Resolving Dependencies
--> Running transaction check
---> Package docker-engine.x86_64 0:1.13.0-1.el7.centos will be installed
--> Processing Dependency: docker-engine-selinux >= 1.13.0-1.el7.centos for package: docker-engine-1.13.0-1.el7.centos.x86_64
--> Processing Dependency: libcgroup for package: docker-engine-1.13.0-1.el7.centos.x86_64
--> Processing Dependency: libseccomp.so.2()(64bit) for package: docker-engine-1.13.0-1.el7.centos.x86_64
--> Processing Dependency: libltdl.so.7()(64bit) for package: docker-engine-1.13.0-1.el7.centos.x86_64
--> Running transaction check
---> Package docker-engine-selinux.noarch 0:1.13.0-1.el7.centos will be installed
--> Processing Dependency: selinux-policy-base >= 3.13.1-102 for package: docker-engine-selinux-1.13.0-1.el7.centos.noarch
--> Processing Dependency: selinux-policy-targeted >= 3.13.1-102 for package: docker-engine-selinux-1.13.0-1.el7.centos.noarch
--> Processing Dependency: policycoreutils-python for package: docker-engine-selinux-1.13.0-1.el7.centos.noarch
---> Package libcgroup.x86_64 0:0.41-11.el7 will be installed
---> Package libseccomp.x86_64 0:2.3.1-2.el7 will be installed
---> Package libtool-ltdl.x86_64 0:2.4.2-21.el7_2 will be installed
--> Running transaction check
---> Package policycoreutils-python.x86_64 0:2.5-11.el7_3 will be installed
--> Processing Dependency: policycoreutils = 2.5-11.el7_3 for package: policycoreutils-python-2.5-11.el7_3.x86_64
--> Processing Dependency: setools-libs >= 3.3.8-1 for package: policycoreutils-python-2.5-11.el7_3.x86_64
--> Processing Dependency: libsemanage-python >= 2.5-5 for package: policycoreutils-python-2.5-11.el7_3.x86_64
--> Processing Dependency: audit-libs-python >= 2.1.3-4 for package: policycoreutils-python-2.5-11.el7_3.x86_64
--> Processing Dependency: python-IPy for package: policycoreutils-python-2.5-11.el7_3.x86_64
--> Processing Dependency: libsepol.so.1(LIBSEPOL_1.0)(64bit) for package: policycoreutils-python-2.5-11.el7_3.x86_64
--> Processing Dependency: libqpol.so.1(VERS_1.4)(64bit) for package: policycoreutils-python-2.5-11.el7_3.x86_64
--> Processing Dependency: libqpol.so.1(VERS_1.2)(64bit) for package: policycoreutils-python-2.5-11.el7_3.x86_64
--> Processing Dependency: libapol.so.4(VERS_4.0)(64bit) for package: policycoreutils-python-2.5-11.el7_3.x86_64
--> Processing Dependency: checkpolicy for package: policycoreutils-python-2.5-11.el7_3.x86_64
--> Processing Dependency: libqpol.so.1()(64bit) for package: policycoreutils-python-2.5-11.el7_3.x86_64
--> Processing Dependency: libapol.so.4()(64bit) for package: policycoreutils-python-2.5-11.el7_3.x86_64
---> Package selinux-policy-targeted.noarch 0:3.13.1-60.el7 will be updated
---> Package selinux-policy-targeted.noarch 0:3.13.1-102.el7_3.13 will be an update
--> Processing Dependency: selinux-policy = 3.13.1-102.el7_3.13 for package: selinux-policy-targeted-3.13.1-102.el7_3.13.noarch
--> Processing Dependency: selinux-policy = 3.13.1-102.el7_3.13 for package: selinux-policy-targeted-3.13.1-102.el7_3.13.noarch
--> Running transaction check
---> Package audit-libs-python.x86_64 0:2.6.5-3.el7 will be installed
--> Processing Dependency: audit-libs(x86-64) = 2.6.5-3.el7 for package: audit-libs-python-2.6.5-3.el7.x86_64
---> Package checkpolicy.x86_64 0:2.5-4.el7 will be installed
---> Package libsemanage-python.x86_64 0:2.5-5.1.el7_3 will be installed
--> Processing Dependency: libsemanage = 2.5-5.1.el7_3 for package: libsemanage-python-2.5-5.1.el7_3.x86_64
--> Processing Dependency: libsemanage.so.1(LIBSEMANAGE_1.1)(64bit) for package: libsemanage-python-2.5-5.1.el7_3.x86_64
---> Package libsepol.x86_64 0:2.1.9-3.el7 will be updated
---> Package libsepol.x86_64 0:2.5-6.el7 will be an update
---> Package policycoreutils.x86_64 0:2.2.5-20.el7 will be updated
---> Package policycoreutils.x86_64 0:2.5-11.el7_3 will be an update
--> Processing Dependency: libselinux-utils >= 2.5-6 for package: policycoreutils-2.5-11.el7_3.x86_64
---> Package python-IPy.noarch 0:0.75-6.el7 will be installed
---> Package selinux-policy.noarch 0:3.13.1-60.el7 will be updated
---> Package selinux-policy.noarch 0:3.13.1-102.el7_3.13 will be an update
---> Package setools-libs.x86_64 0:3.3.8-1.1.el7 will be installed
--> Processing Dependency: libselinux >= 2.5-0 for package: setools-libs-3.3.8-1.1.el7.x86_64
--> Running transaction check
---> Package audit-libs.x86_64 0:2.4.1-5.el7 will be updated
--> Processing Dependency: audit-libs = 2.4.1-5.el7 for package: audit-2.4.1-5.el7.x86_64
---> Package audit-libs.x86_64 0:2.6.5-3.el7 will be an update
---> Package libselinux.x86_64 0:2.2.2-6.el7 will be updated
--> Processing Dependency: libselinux = 2.2.2-6.el7 for package: libselinux-python-2.2.2-6.el7.x86_64
---> Package libselinux.x86_64 0:2.5-6.el7 will be an update
---> Package libselinux-utils.x86_64 0:2.2.2-6.el7 will be updated
---> Package libselinux-utils.x86_64 0:2.5-6.el7 will be an update
---> Package libsemanage.x86_64 0:2.1.10-18.el7 will be updated
---> Package libsemanage.x86_64 0:2.5-5.1.el7_3 will be an update
--> Running transaction check
---> Package audit.x86_64 0:2.4.1-5.el7 will be updated
---> Package audit.x86_64 0:2.6.5-3.el7 will be an update
---> Package libselinux-python.x86_64 0:2.2.2-6.el7 will be updated
---> Package libselinux-python.x86_64 0:2.5-6.el7 will be an update
--> Processing Conflict: libselinux-2.5-6.el7.x86_64 conflicts systemd < 219-20
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package systemd.x86_64 0:219-19.el7 will be updated
--> Processing Dependency: systemd = 219-19.el7 for package: systemd-sysv-219-19.el7.x86_64
---> Package systemd.x86_64 0:219-30.el7_3.6 will be an update
--> Processing Dependency: systemd-libs = 219-30.el7_3.6 for package: systemd-219-30.el7_3.6.x86_64
--> Running transaction check
---> Package systemd-libs.x86_64 0:219-19.el7 will be updated
--> Processing Dependency: systemd-libs = 219-19.el7 for package: libgudev1-219-19.el7.x86_64
---> Package systemd-libs.x86_64 0:219-30.el7_3.6 will be an update
---> Package systemd-sysv.x86_64 0:219-19.el7 will be updated
---> Package systemd-sysv.x86_64 0:219-30.el7_3.6 will be an update
--> Running transaction check
---> Package libgudev1.x86_64 0:219-19.el7 will be updated
---> Package libgudev1.x86_64 0:219-30.el7_3.6 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================
 Package                        Arch          Version                     Repository          Size
===================================================================================================
Installing:
 docker-engine                  x86_64        1.13.0-1.el7.centos         docker-main         19 M
Updating:
 systemd                        x86_64        219-30.el7_3.6              updates            5.2 M
Installing for dependencies:
 audit-libs-python              x86_64        2.6.5-3.el7                 base                70 k
 checkpolicy                    x86_64        2.5-4.el7                   base               290 k
 docker-engine-selinux          noarch        1.13.0-1.el7.centos         docker-main         28 k
 libcgroup                      x86_64        0.41-11.el7                 base                65 k
 libseccomp                     x86_64        2.3.1-2.el7                 base                56 k
 libsemanage-python             x86_64        2.5-5.1.el7_3               updates            104 k
 libtool-ltdl                   x86_64        2.4.2-21.el7_2              base                49 k
 policycoreutils-python         x86_64        2.5-11.el7_3                updates            445 k
 python-IPy                     noarch        0.75-6.el7                  base                32 k
 setools-libs                   x86_64        3.3.8-1.1.el7               base               612 k
Updating for dependencies:
 audit                          x86_64        2.6.5-3.el7                 base               233 k
 audit-libs                     x86_64        2.6.5-3.el7                 base                85 k
 libgudev1                      x86_64        219-30.el7_3.6              updates             76 k
 libselinux                     x86_64        2.5-6.el7                   base               161 k
 libselinux-python              x86_64        2.5-6.el7                   base               234 k
 libselinux-utils               x86_64        2.5-6.el7                   base               151 k
 libsemanage                    x86_64        2.5-5.1.el7_3               updates            144 k
 libsepol                       x86_64        2.5-6.el7                   base               288 k
 policycoreutils                x86_64        2.5-11.el7_3                updates            841 k
 selinux-policy                 noarch        3.13.1-102.el7_3.13         updates            414 k
 selinux-policy-targeted        noarch        3.13.1-102.el7_3.13         updates            6.4 M
 systemd-libs                   x86_64        219-30.el7_3.6              updates            368 k
 systemd-sysv                   x86_64        219-30.el7_3.6              updates             63 k

Transaction Summary
===================================================================================================
Install  1 Package (+10 Dependent packages)
Upgrade  1 Package (+13 Dependent packages)

Total download size: 35 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/25): audit-libs-2.6.5-3.el7.x86_64.rpm                                   |  85 kB  00:00:00
(2/25): audit-2.6.5-3.el7.x86_64.rpm                                        | 233 kB  00:00:00
(3/25): audit-libs-python-2.6.5-3.el7.x86_64.rpm                            |  70 kB  00:00:00
(4/25): libcgroup-0.41-11.el7.x86_64.rpm                                    |  65 kB  00:00:00
(5/25): checkpolicy-2.5-4.el7.x86_64.rpm                                    | 290 kB  00:00:00
(6/25): libseccomp-2.3.1-2.el7.x86_64.rpm                                   |  56 kB  00:00:00
(7/25): libselinux-2.5-6.el7.x86_64.rpm                                     | 161 kB  00:00:00
(8/25): libgudev1-219-30.el7_3.6.x86_64.rpm                                 |  76 kB  00:00:00
(9/25): libselinux-utils-2.5-6.el7.x86_64.rpm                               | 151 kB  00:00:00
(10/25): libsemanage-2.5-5.1.el7_3.x86_64.rpm                               | 144 kB  00:00:00
(11/25): libselinux-python-2.5-6.el7.x86_64.rpm                             | 234 kB  00:00:00
(12/25): libsemanage-python-2.5-5.1.el7_3.x86_64.rpm                        | 104 kB  00:00:00
(13/25): libtool-ltdl-2.4.2-21.el7_2.x86_64.rpm                             |  49 kB  00:00:00
(14/25): libsepol-2.5-6.el7.x86_64.rpm                                      | 288 kB  00:00:00
(15/25): python-IPy-0.75-6.el7.noarch.rpm                                   |  32 kB  00:00:00
(16/25): policycoreutils-2.5-11.el7_3.x86_64.rpm                            | 841 kB  00:00:00
(17/25): policycoreutils-python-2.5-11.el7_3.x86_64.rpm                     | 445 kB  00:00:00
(18/25): selinux-policy-3.13.1-102.el7_3.13.noarch.rpm                      | 414 kB  00:00:00
warning: /var/cache/yum/x86_64/7/docker-main/packages/docker-engine-selinux-1.13.0-1.el7.centos.noarch.rpm: Header V4 RSA/SHA512 Signature, key ID 2c52609d: NOKEY
Public key for docker-engine-selinux-1.13.0-1.el7.centos.noarch.rpm is not installed
(19/25): docker-engine-selinux-1.13.0-1.el7.centos.noarch.rpm               |  28 kB  00:00:00
(20/25): setools-libs-3.3.8-1.1.el7.x86_64.rpm                              | 612 kB  00:00:00
(21/25): systemd-219-30.el7_3.6.x86_64.rpm                                  | 5.2 MB  00:00:02
(22/25): systemd-libs-219-30.el7_3.6.x86_64.rpm                             | 368 kB  00:00:00
(23/25): systemd-sysv-219-30.el7_3.6.x86_64.rpm                             |  63 kB  00:00:00
(24/25): selinux-policy-targeted-3.13.1-102.el7_3.13.noarch.rpm             | 6.4 MB  00:00:03
(25/25): docker-engine-1.13.0-1.el7.centos.x86_64.rpm                       |  19 MB  00:00:07
---------------------------------------------------------------------------------------------------
Total                                                              4.3 MB/s |  35 MB  00:00:08
Retrieving key from https://yum.dockerproject.org/gpg
Importing GPG key 0x2C52609D:
 Userid     : "Docker Release Tool (releasedocker) <docker@docker.com>"
 Fingerprint: 5811 8e89 f3a9 1289 7c07 0adb f762 2157 2c52 609d
 From       : https://yum.dockerproject.org/gpg
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : libsepol-2.5-6.el7.x86_64                                                      1/39
  Updating   : libselinux-2.5-6.el7.x86_64                                                    2/39
  Updating   : audit-libs-2.6.5-3.el7.x86_64                                                  3/39
  Updating   : libsemanage-2.5-5.1.el7_3.x86_64                                               4/39
  Updating   : systemd-libs-219-30.el7_3.6.x86_64                                             5/39
  Updating   : systemd-219-30.el7_3.6.x86_64                                                  6/39
  Installing : libcgroup-0.41-11.el7.x86_64                                                   7/39
  Updating   : libselinux-utils-2.5-6.el7.x86_64                                              8/39
  Updating   : policycoreutils-2.5-11.el7_3.x86_64                                            9/39
  Updating   : selinux-policy-3.13.1-102.el7_3.13.noarch                                     10/39
  Updating   : selinux-policy-targeted-3.13.1-102.el7_3.13.noarch                            11/39
  Updating   : systemd-sysv-219-30.el7_3.6.x86_64                                            12/39
  Installing : libsemanage-python-2.5-5.1.el7_3.x86_64                                       13/39
  Installing : audit-libs-python-2.6.5-3.el7.x86_64                                          14/39
  Updating   : libselinux-python-2.5-6.el7.x86_64                                            15/39
  Installing : setools-libs-3.3.8-1.1.el7.x86_64                                             16/39
  Installing : checkpolicy-2.5-4.el7.x86_64                                                  17/39
  Installing : libtool-ltdl-2.4.2-21.el7_2.x86_64                                            18/39
  Installing : python-IPy-0.75-6.el7.noarch                                                  19/39
  Installing : policycoreutils-python-2.5-11.el7_3.x86_64                                    20/39
  Installing : docker-engine-selinux-1.13.0-1.el7.centos.noarch                              21/39
setsebool:  SELinux is disabled.
libsemanage.semanage_direct_install_info: Overriding docker module at lower priority 100 with module at priority 400.
  Installing : libseccomp-2.3.1-2.el7.x86_64                                                 22/39
  Installing : docker-engine-1.13.0-1.el7.centos.x86_64                                      23/39
  Updating   : audit-2.6.5-3.el7.x86_64                                                      24/39
  Updating   : libgudev1-219-30.el7_3.6.x86_64                                               25/39
  Cleanup    : audit-2.4.1-5.el7.x86_64                                                      26/39
  Cleanup    : selinux-policy-targeted-3.13.1-60.el7.noarch                                  27/39
  Cleanup    : selinux-policy-3.13.1-60.el7.noarch                                           28/39
  Cleanup    : systemd-sysv-219-19.el7.x86_64                                                29/39
  Cleanup    : policycoreutils-2.2.5-20.el7.x86_64                                           30/39
  Cleanup    : libsemanage-2.1.10-18.el7.x86_64                                              31/39
  Cleanup    : systemd-219-19.el7.x86_64                                                     32/39
  Cleanup    : libselinux-utils-2.2.2-6.el7.x86_64                                           33/39
  Cleanup    : libgudev1-219-19.el7.x86_64                                                   34/39
  Cleanup    : systemd-libs-219-19.el7.x86_64                                                35/39
  Cleanup    : libselinux-python-2.2.2-6.el7.x86_64                                          36/39
  Cleanup    : libselinux-2.2.2-6.el7.x86_64                                                 37/39
  Cleanup    : libsepol-2.1.9-3.el7.x86_64                                                   38/39
  Cleanup    : audit-libs-2.4.1-5.el7.x86_64                                                 39/39
  Verifying  : libseccomp-2.3.1-2.el7.x86_64                                                  1/39
  Verifying  : libsepol-2.5-6.el7.x86_64                                                      2/39
  Verifying  : docker-engine-selinux-1.13.0-1.el7.centos.noarch                               3/39
  Verifying  : libselinux-python-2.5-6.el7.x86_64                                             4/39
  Verifying  : policycoreutils-python-2.5-11.el7_3.x86_64                                     5/39
  Verifying  : systemd-libs-219-30.el7_3.6.x86_64                                             6/39
  Verifying  : libsemanage-python-2.5-5.1.el7_3.x86_64                                        7/39
  Verifying  : libselinux-utils-2.5-6.el7.x86_64                                              8/39
  Verifying  : policycoreutils-2.5-11.el7_3.x86_64                                            9/39
  Verifying  : audit-libs-2.6.5-3.el7.x86_64                                                 10/39
  Verifying  : selinux-policy-3.13.1-102.el7_3.13.noarch                                     11/39
  Verifying  : python-IPy-0.75-6.el7.noarch                                                  12/39
  Verifying  : systemd-219-30.el7_3.6.x86_64                                                 13/39
  Verifying  : audit-2.6.5-3.el7.x86_64                                                      14/39
  Verifying  : libtool-ltdl-2.4.2-21.el7_2.x86_64                                            15/39
  Verifying  : libsemanage-2.5-5.1.el7_3.x86_64                                              16/39
  Verifying  : systemd-sysv-219-30.el7_3.6.x86_64                                            17/39
  Verifying  : audit-libs-python-2.6.5-3.el7.x86_64                                          18/39
  Verifying  : libselinux-2.5-6.el7.x86_64                                                   19/39
  Verifying  : libgudev1-219-30.el7_3.6.x86_64                                               20/39
  Verifying  : selinux-policy-targeted-3.13.1-102.el7_3.13.noarch                            21/39
  Verifying  : docker-engine-1.13.0-1.el7.centos.x86_64                                      22/39
  Verifying  : libcgroup-0.41-11.el7.x86_64                                                  23/39
  Verifying  : setools-libs-3.3.8-1.1.el7.x86_64                                             24/39
  Verifying  : checkpolicy-2.5-4.el7.x86_64                                                  25/39
  Verifying  : selinux-policy-targeted-3.13.1-60.el7.noarch                                  26/39
  Verifying  : libsemanage-2.1.10-18.el7.x86_64                                              27/39
  Verifying  : systemd-sysv-219-19.el7.x86_64                                                28/39
  Verifying  : libgudev1-219-19.el7.x86_64                                                   29/39
  Verifying  : systemd-219-19.el7.x86_64                                                     30/39
  Verifying  : selinux-policy-3.13.1-60.el7.noarch                                           31/39
  Verifying  : libselinux-utils-2.2.2-6.el7.x86_64                                           32/39
  Verifying  : libsepol-2.1.9-3.el7.x86_64                                                   33/39
  Verifying  : audit-libs-2.4.1-5.el7.x86_64                                                 34/39
  Verifying  : libselinux-python-2.2.2-6.el7.x86_64                                          35/39
  Verifying  : systemd-libs-219-19.el7.x86_64                                                36/39
  Verifying  : policycoreutils-2.2.5-20.el7.x86_64                                           37/39
  Verifying  : audit-2.4.1-5.el7.x86_64                                                      38/39
  Verifying  : libselinux-2.2.2-6.el7.x86_64                                                 39/39

Installed:
  docker-engine.x86_64 0:1.13.0-1.el7.centos

Dependency Installed:
  audit-libs-python.x86_64 0:2.6.5-3.el7              checkpolicy.x86_64 0:2.5-4.el7
  docker-engine-selinux.noarch 0:1.13.0-1.el7.centos  libcgroup.x86_64 0:0.41-11.el7
  libseccomp.x86_64 0:2.3.1-2.el7                     libsemanage-python.x86_64 0:2.5-5.1.el7_3
  libtool-ltdl.x86_64 0:2.4.2-21.el7_2                policycoreutils-python.x86_64 0:2.5-11.el7_3
  python-IPy.noarch 0:0.75-6.el7                      setools-libs.x86_64 0:3.3.8-1.1.el7

Updated:
  systemd.x86_64 0:219-30.el7_3.6

Dependency Updated:
  audit.x86_64 0:2.6.5-3.el7                           audit-libs.x86_64 0:2.6.5-3.el7
  libgudev1.x86_64 0:219-30.el7_3.6                    libselinux.x86_64 0:2.5-6.el7
  libselinux-python.x86_64 0:2.5-6.el7                 libselinux-utils.x86_64 0:2.5-6.el7
  libsemanage.x86_64 0:2.5-5.1.el7_3                   libsepol.x86_64 0:2.5-6.el7
  policycoreutils.x86_64 0:2.5-11.el7_3                selinux-policy.noarch 0:3.13.1-102.el7_3.13
  selinux-policy-targeted.noarch 0:3.13.1-102.el7_3.13 systemd-libs.x86_64 0:219-30.el7_3.6
  systemd-sysv.x86_64 0:219-30.el7_3.6

Complete!
[vagrant@localhost ~]$

hello world

[vagrant@localhost ~]$ sudo docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
[vagrant@localhost ~]$ sudo docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
78445dd45222: Pull complete
Digest: sha256:c5515758d4c5e1e838e9cd307f6c6a0d620b5e07e6f927b07d05f6d12a1ac8d7
Status: Downloaded newer image for hello-world:latest

Hello from Docker!
This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:
 1. The Docker client contacted the Docker daemon.
 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
 3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
 4. The Docker daemon streamed that output to the Docker client, which sent it
    to your terminal.

To try something more ambitious, you can run an Ubuntu container with:
 $ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker ID:
 https://cloud.docker.com/

For more examples and ideas, visit:
 https://docs.docker.com/engine/userguide/

[vagrant@localhost ~]$

setting

[vagrant@localhost ~]$ sudo systemctl enable docker
Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.
[vagrant@localhost ~]$
[vagrant@localhost ~]$ sudo groupadd docker
groupadd: group 'docker' already exists
[vagrant@localhost ~]$ id
uid=1000(vagrant) gid=1000(vagrant) groups=1000(vagrant)
[vagrant@localhost ~]$ sudo usermod -aG docker $USER
[vagrant@localhost ~]$

after re-login

[vagrant@localhost ~]$ id
uid=1000(vagrant) gid=1000(vagrant) groups=1000(vagrant),992(docker)
[vagrant@localhost ~]$