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

AKAI TSUKI

System development or Technical something

install docker in CentOS 7

[root@localhost ~]# cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)
[root@localhost ~]# getenforce
Enforcing
[root@localhost ~]#
[root@localhost ~]# yum install docker-engine
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: www.ftp.ne.jp
 * extras: www.ftp.ne.jp
 * updates: www.ftp.ne.jp
Resolving Dependencies
--> Running transaction check
---> Package docker-engine.x86_64 0:1.12.5-1.el7.centos will be installed
--> Processing Dependency: docker-engine-selinux >= 1.12.5-1.el7.centos for package: docker-engine-1.12.5-1.el7.centos.x86_64
--> Processing Dependency: libcgroup for package: docker-engine-1.12.5-1.el7.centos.x86_64
--> Processing Dependency: libseccomp.so.2()(64bit) for package: docker-engine-1.12.5-1.el7.centos.x86_64
--> Processing Dependency: libltdl.so.7()(64bit) for package: docker-engine-1.12.5-1.el7.centos.x86_64
--> Running transaction check
---> Package docker-engine-selinux.noarch 0:1.12.5-1.el7.centos will be installed
--> Processing Dependency: policycoreutils-python for package: docker-engine-selinux-1.12.5-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-9.el7 will be installed
--> Processing Dependency: policycoreutils = 2.5-9.el7 for package: policycoreutils-python-2.5-9.el7.x86_64
--> Processing Dependency: setools-libs >= 3.3.8-1 for package: policycoreutils-python-2.5-9.el7.x86_64
--> Processing Dependency: libsemanage-python >= 2.5-4 for package: policycoreutils-python-2.5-9.el7.x86_64
--> Processing Dependency: audit-libs-python >= 2.1.3-4 for package: policycoreutils-python-2.5-9.el7.x86_64
--> Processing Dependency: python-IPy for package: policycoreutils-python-2.5-9.el7.x86_64
--> Processing Dependency: libqpol.so.1(VERS_1.4)(64bit) for package: policycoreutils-python-2.5-9.el7.x86_64
--> Processing Dependency: libqpol.so.1(VERS_1.2)(64bit) for package: policycoreutils-python-2.5-9.el7.x86_64
--> Processing Dependency: libapol.so.4(VERS_4.0)(64bit) for package: policycoreutils-python-2.5-9.el7.x86_64
--> Processing Dependency: checkpolicy for package: policycoreutils-python-2.5-9.el7.x86_64
--> Processing Dependency: libqpol.so.1()(64bit) for package: policycoreutils-python-2.5-9.el7.x86_64
--> Processing Dependency: libapol.so.4()(64bit) for package: policycoreutils-python-2.5-9.el7.x86_64
--> Running transaction check
---> Package audit-libs-python.x86_64 0:2.6.5-3.el7 will be installed
---> Package checkpolicy.x86_64 0:2.5-4.el7 will be installed
---> Package libsemanage-python.x86_64 0:2.5-4.el7 will be installed
---> Package policycoreutils.x86_64 0:2.5-8.el7 will be updated
---> Package policycoreutils.x86_64 0:2.5-9.el7 will be an update
---> Package python-IPy.noarch 0:0.75-6.el7 will be installed
---> Package setools-libs.x86_64 0:3.3.8-1.1.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================
 Package                       Arch          Version                       Repository         Size
===================================================================================================
Installing:
 docker-engine                 x86_64        1.12.5-1.el7.centos           dockerrepo         19 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.12.5-1.el7.centos           dockerrepo         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-4.el7                     base              103 k
 libtool-ltdl                  x86_64        2.4.2-21.el7_2                base               49 k
 policycoreutils-python        x86_64        2.5-9.el7                     updates           444 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:
 policycoreutils               x86_64        2.5-9.el7                     updates           841 k

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

Total download size: 22 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
warning: /var/cache/yum/x86_64/7/base/packages/checkpolicy-2.5-4.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Public key for checkpolicy-2.5-4.el7.x86_64.rpm is not installed
(1/12): checkpolicy-2.5-4.el7.x86_64.rpm                                    | 290 kB  00:00:00
(2/12): audit-libs-python-2.6.5-3.el7.x86_64.rpm                            |  70 kB  00:00:00
(3/12): libcgroup-0.41-11.el7.x86_64.rpm                                    |  65 kB  00:00:00
(4/12): libseccomp-2.3.1-2.el7.x86_64.rpm                                   |  56 kB  00:00:00
(5/12): libsemanage-python-2.5-4.el7.x86_64.rpm                             | 103 kB  00:00:00
(6/12): libtool-ltdl-2.4.2-21.el7_2.x86_64.rpm                              |  49 kB  00:00:00
(7/12): python-IPy-0.75-6.el7.noarch.rpm                                    |  32 kB  00:00:00
warning: /var/cache/yum/x86_64/7/dockerrepo/packages/docker-engine-selinux-1.12.5-1.el7.centos.noarch.rpm: Header V4 RSA/SHA512 Signature, key ID 2c52609d: NOKEY
Public key for docker-engine-selinux-1.12.5-1.el7.centos.noarch.rpm is not installed
(8/12): docker-engine-selinux-1.12.5-1.el7.centos.noarch.rpm                |  28 kB  00:00:00
Public key for policycoreutils-python-2.5-9.el7.x86_64.rpm is not installed
(9/12): policycoreutils-python-2.5-9.el7.x86_64.rpm                         | 444 kB  00:00:00
(10/12): setools-libs-3.3.8-1.1.el7.x86_64.rpm                              | 612 kB  00:00:00
(11/12): policycoreutils-2.5-9.el7.x86_64.rpm                               | 841 kB  00:00:00
(12/12): docker-engine-1.12.5-1.el7.centos.x86_64.rpm                       |  19 MB  00:00:02
---------------------------------------------------------------------------------------------------
Total                                                              7.4 MB/s |  22 MB  00:00:02
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Importing GPG key 0xF4A80EB5:
 Userid     : "CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>"
 Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
 Package    : centos-release-7-3.1611.el7.centos.x86_64 (@anaconda)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Is this ok [y/N]: y
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
Is this ok [y/N]: y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : policycoreutils-2.5-9.el7.x86_64                                               1/13
  Installing : libcgroup-0.41-11.el7.x86_64                                                   2/13
  Installing : setools-libs-3.3.8-1.1.el7.x86_64                                              3/13
  Installing : libsemanage-python-2.5-4.el7.x86_64                                            4/13
  Installing : checkpolicy-2.5-4.el7.x86_64                                                   5/13
  Installing : python-IPy-0.75-6.el7.noarch                                                   6/13
  Installing : audit-libs-python-2.6.5-3.el7.x86_64                                           7/13
  Installing : policycoreutils-python-2.5-9.el7.x86_64                                        8/13
  Installing : docker-engine-selinux-1.12.5-1.el7.centos.noarch                               9/13
Re-declaration of boolean virt_sandbox_use_fusefs
Failed to create node
Bad boolean declaration at /etc/selinux/targeted/tmp/modules/100/virt/cil:159
/usr/sbin/semodule:  Failed!
libsemanage.semanage_direct_install_info: Overriding docker module at lower priority 100 with module at priority 400.
restorecon:  lstat(/var/lib/docker) failed:  No such file or directory
warning: %post(docker-engine-selinux-1.12.5-1.el7.centos.noarch) scriptlet failed, exit status 255
Non-fatal POSTIN scriptlet failure in rpm package docker-engine-selinux-1.12.5-1.el7.centos.noarch
  Installing : libtool-ltdl-2.4.2-21.el7_2.x86_64                                            10/13
  Installing : libseccomp-2.3.1-2.el7.x86_64                                                 11/13
  Installing : docker-engine-1.12.5-1.el7.centos.x86_64                                      12/13
  Cleanup    : policycoreutils-2.5-8.el7.x86_64                                              13/13
  Verifying  : libseccomp-2.3.1-2.el7.x86_64                                                  1/13
  Verifying  : libtool-ltdl-2.4.2-21.el7_2.x86_64                                             2/13
  Verifying  : docker-engine-selinux-1.12.5-1.el7.centos.noarch                               3/13
  Verifying  : audit-libs-python-2.6.5-3.el7.x86_64                                           4/13
  Verifying  : policycoreutils-python-2.5-9.el7.x86_64                                        5/13
  Verifying  : python-IPy-0.75-6.el7.noarch                                                   6/13
  Verifying  : libcgroup-0.41-11.el7.x86_64                                                   7/13
  Verifying  : docker-engine-1.12.5-1.el7.centos.x86_64                                       8/13
  Verifying  : checkpolicy-2.5-4.el7.x86_64                                                   9/13
  Verifying  : libsemanage-python-2.5-4.el7.x86_64                                           10/13
  Verifying  : policycoreutils-2.5-9.el7.x86_64                                              11/13
  Verifying  : setools-libs-3.3.8-1.1.el7.x86_64                                             12/13
  Verifying  : policycoreutils-2.5-8.el7.x86_64                                              13/13

Installed:
  docker-engine.x86_64 0:1.12.5-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.12.5-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-4.el7
  libtool-ltdl.x86_64 0:2.4.2-21.el7_2                 policycoreutils-python.x86_64 0:2.5-9.el7
  python-IPy.noarch 0:0.75-6.el7                       setools-libs.x86_64 0:3.3.8-1.1.el7

Dependency Updated:
  policycoreutils.x86_64 0:2.5-9.el7

Complete!
[root@localhost ~]#