docker-ce from repo centos 7


[root@localhost Downloads]#  sudo yum-config-manager     --add-repo     https://download.docker.com/linux/centos/docker-ce.repo
Loaded plugins: fastestmirror, langpacks
grabbing file https://download.docker.com/linux/centos/docker-ce.repo to /etc/yum.repos.d/docker-ce.repo
repo saved to /etc/yum.repos.d/docker-ce.repo
[root@localhost Downloads]# sudo yum install docker-ceLoaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: repos.del.extreme-ix.org
 * extras: repos.del.extreme-ix.org
 * updates: repos.del.extreme-ix.org
docker-ce-stable                                                | 3.5 kB  00:00:00    
(1/2): docker-ce-stable/x86_64/primary_db                       |  28 kB  00:00:01    
(2/2): docker-ce-stable/x86_64/updateinfo                       |   55 B  00:00:01    
Resolving Dependencies
--> Running transaction check
---> Package docker-ce.x86_64 3:18.09.6-3.el7 will be installed
--> Processing Dependency: container-selinux >= 2.9 for package: 3:docker-ce-18.09.6-3.el7.x86_64
--> Processing Dependency: containerd.io >= 1.2.2-3 for package: 3:docker-ce-18.09.6-3.el7.x86_64
--> Processing Dependency: docker-ce-cli for package: 3:docker-ce-18.09.6-3.el7.x86_64
--> Running transaction check
---> Package container-selinux.noarch 2:2.95-2.el7_6 will be installed
--> Processing Dependency: selinux-policy-targeted >= 3.13.1-216.el7 for package: 2:container-selinux-2.95-2.el7_6.noarch
--> Processing Dependency: selinux-policy-base >= 3.13.1-216.el7 for package: 2:container-selinux-2.95-2.el7_6.noarch
--> Processing Dependency: selinux-policy >= 3.13.1-216.el7 for package: 2:container-selinux-2.95-2.el7_6.noarch
---> Package containerd.io.x86_64 0:1.2.5-3.1.el7 will be installed
---> Package docker-ce-cli.x86_64 1:18.09.6-3.el7 will be installed
--> Running transaction check
---> Package selinux-policy.noarch 0:3.13.1-192.el7 will be updated
---> Package selinux-policy.noarch 0:3.13.1-229.el7_6.12 will be an update
--> Processing Dependency: policycoreutils >= 2.5-24 for package: selinux-policy-3.13.1-229.el7_6.12.noarch
--> Processing Dependency: libsemanage >= 2.5-13 for package: selinux-policy-3.13.1-229.el7_6.12.noarch
---> Package selinux-policy-targeted.noarch 0:3.13.1-192.el7 will be updated
---> Package selinux-policy-targeted.noarch 0:3.13.1-229.el7_6.12 will be an update
--> Running transaction check
---> Package libsemanage.x86_64 0:2.5-11.el7 will be updated
--> Processing Dependency: libsemanage = 2.5-11.el7 for package: libsemanage-python-2.5-11.el7.x86_64
---> Package libsemanage.x86_64 0:2.5-14.el7 will be an update
---> Package policycoreutils.x86_64 0:2.5-22.el7 will be updated
--> Processing Dependency: policycoreutils = 2.5-22.el7 for package: policycoreutils-python-2.5-22.el7.x86_64
---> Package policycoreutils.x86_64 0:2.5-29.el7_6.1 will be an update
--> Running transaction check
---> Package libsemanage-python.x86_64 0:2.5-11.el7 will be updated
---> Package libsemanage-python.x86_64 0:2.5-14.el7 will be an update
---> Package policycoreutils-python.x86_64 0:2.5-22.el7 will be updated
---> Package policycoreutils-python.x86_64 0:2.5-29.el7_6.1 will be an update
--> Processing Dependency: setools-libs >= 3.3.8-4 for package: policycoreutils-python-2.5-29.el7_6.1.x86_64
--> Running transaction check
---> Package setools-libs.x86_64 0:3.3.8-2.el7 will be updated
---> Package setools-libs.x86_64 0:3.3.8-4.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

=======================================================================================
 Package                    Arch      Version                Repository           Size
=======================================================================================
Installing:
 docker-ce                  x86_64    3:18.09.6-3.el7        docker-ce-stable     19 M
Installing for dependencies:
 container-selinux          noarch    2:2.95-2.el7_6         extras               39 k
 containerd.io              x86_64    1.2.5-3.1.el7          docker-ce-stable     22 M
 docker-ce-cli              x86_64    1:18.09.6-3.el7        docker-ce-stable     14 M
Updating for dependencies:
 libsemanage                x86_64    2.5-14.el7             base                151 k
 libsemanage-python         x86_64    2.5-14.el7             base                113 k
 policycoreutils            x86_64    2.5-29.el7_6.1         updates             916 k
 policycoreutils-python     x86_64    2.5-29.el7_6.1         updates             456 k
 selinux-policy             noarch    3.13.1-229.el7_6.12    updates             484 k
 selinux-policy-targeted    noarch    3.13.1-229.el7_6.12    updates             6.9 M
 setools-libs               x86_64    3.3.8-4.el7            base                620 k

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

Total size: 64 M
Total download size: 55 M
Is this ok [y/d/N]: y
Downloading packages:
(1/4): container-selinux-2.95-2.el7_6.noarch.rpm                |  39 kB  00:00:00    
warning: /var/cache/yum/x86_64/7/docker-ce-stable/packages/docker-ce-18.09.6-3.el7.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 621e9f35: NOKEY
Public key for docker-ce-18.09.6-3.el7.x86_64.rpm is not installed
(2/4): docker-ce-18.09.6-3.el7.x86_64.rpm                       |  19 MB  00:00:24    
(3/4): containerd.io-1.2.5-3.1.el7.x86_64.rpm                   |  22 MB  00:00:29    
(4/4): docker-ce-cli-18.09.6-3.el7.x86_64.rpm                   |  14 MB  00:00:11    
---------------------------------------------------------------------------------------
Total                                                     1.5 MB/s |  55 MB  00:36    
Importing GPG key 0x621E9F35:
 Userid     : "Docker Release (CE rpm) <docker@docker.com>"
 Fingerprint: 060a 61c5 1b55 8a7f 742b 77aa c52f eb6b 621e 9f35
Is this ok [y/N]: y

Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
  Updating   : libsemanage-2.5-14.el7.x86_64                                      1/18
  Updating   : policycoreutils-2.5-29.el7_6.1.x86_64                              2/18
  Updating   : selinux-policy-3.13.1-229.el7_6.12.noarch                          3/18
  Updating   : selinux-policy-targeted-3.13.1-229.el7_6.12.noarch                 4/18
  Updating   : libsemanage-python-2.5-14.el7.x86_64                               5/18
  Updating   : setools-libs-3.3.8-4.el7.x86_64                                    6/18
  Updating   : policycoreutils-python-2.5-29.el7_6.1.x86_64                       7/18
  Installing : 2:container-selinux-2.95-2.el7_6.noarch                            8/18
setsebool:  SELinux is disabled.
  Installing : 1:docker-ce-cli-18.09.6-3.el7.x86_64                               9/18
  Installing : containerd.io-1.2.5-3.1.el7.x86_64                                10/18
  Installing : 3:docker-ce-18.09.6-3.el7.x86_64                                  11/18
  Cleanup    : policycoreutils-python-2.5-22.el7.x86_64                          12/18
  Cleanup    : selinux-policy-targeted-3.13.1-192.el7.noarch                     13/18
  Cleanup    : selinux-policy-3.13.1-192.el7.noarch                              14/18
  Cleanup    : policycoreutils-2.5-22.el7.x86_64                                 15/18
  Cleanup    : libsemanage-python-2.5-11.el7.x86_64                              16/18
  Cleanup    : libsemanage-2.5-11.el7.x86_64                                     17/18
  Cleanup    : setools-libs-3.3.8-2.el7.x86_64                                   18/18
  Verifying  : 2:container-selinux-2.95-2.el7_6.noarch                            1/18
  Verifying  : containerd.io-1.2.5-3.1.el7.x86_64                                 2/18
  Verifying  : policycoreutils-python-2.5-29.el7_6.1.x86_64                       3/18
  Verifying  : libsemanage-python-2.5-14.el7.x86_64                               4/18
  Verifying  : libsemanage-2.5-14.el7.x86_64                                      5/18
  Verifying  : 1:docker-ce-cli-18.09.6-3.el7.x86_64                               6/18
  Verifying  : 3:docker-ce-18.09.6-3.el7.x86_64                                   7/18
  Verifying  : setools-libs-3.3.8-4.el7.x86_64                                    8/18
  Verifying  : policycoreutils-2.5-29.el7_6.1.x86_64                              9/18
  Verifying  : selinux-policy-targeted-3.13.1-229.el7_6.12.noarch                10/18
  Verifying  : selinux-policy-3.13.1-229.el7_6.12.noarch                         11/18
  Verifying  : libsemanage-python-2.5-11.el7.x86_64                              12/18
  Verifying  : libsemanage-2.5-11.el7.x86_64                                     13/18
  Verifying  : setools-libs-3.3.8-2.el7.x86_64                                   14/18
  Verifying  : policycoreutils-python-2.5-22.el7.x86_64                          15/18
  Verifying  : policycoreutils-2.5-22.el7.x86_64                                 16/18
  Verifying  : selinux-policy-3.13.1-192.el7.noarch                              17/18
  Verifying  : selinux-policy-targeted-3.13.1-192.el7.noarch                     18/18

Installed:
  docker-ce.x86_64 3:18.09.6-3.el7                                                    

Dependency Installed:
  container-selinux.noarch 2:2.95-2.el7_6     containerd.io.x86_64 0:1.2.5-3.1.el7   
  docker-ce-cli.x86_64 1:18.09.6-3.el7      

Dependency Updated:
  libsemanage.x86_64 0:2.5-14.el7                                                     
  libsemanage-python.x86_64 0:2.5-14.el7                                              
  policycoreutils.x86_64 0:2.5-29.el7_6.1                                             
  policycoreutils-python.x86_64 0:2.5-29.el7_6.1                                      
  selinux-policy.noarch 0:3.13.1-229.el7_6.12                                         
  selinux-policy-targeted.noarch 0:3.13.1-229.el7_6.12                                
  setools-libs.x86_64 0:3.3.8-4.el7                                                    

Complete!

[root@wp ~]# service docker start
Redirecting to /bin/systemctl start docker.service

[root@wp ~]# service docker status
Redirecting to /bin/systemctl status docker.service
● docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
   Active: active (running) since Tue 2019-06-11 18:41:56 IST; 2min 9s ago
     Docs: https://docs.docker.com
 Main PID: 3780 (dockerd)
    Tasks: 10
   Memory: 130.1M
   CGroup: /system.slice/docker.service
           └─3780 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd....

Jun 11 18:41:54 wp dockerd[3780]: time="2019-06-11T18:41:54.713129604+05:30" leve...rpc
Jun 11 18:41:54 wp dockerd[3780]: time="2019-06-11T18:41:54.713411664+05:30" leve...rpc
Jun 11 18:41:54 wp dockerd[3780]: time="2019-06-11T18:41:54.736801548+05:30" leve...t."
Jun 11 18:41:55 wp dockerd[3780]: time="2019-06-11T18:41:55.823994005+05:30" leve...ss"
Jun 11 18:41:56 wp dockerd[3780]: time="2019-06-11T18:41:56.049660060+05:30" leve...e."
Jun 11 18:41:56 wp dockerd[3780]: time="2019-06-11T18:41:56.849778195+05:30" leve...9.6
Jun 11 18:41:56 wp dockerd[3780]: time="2019-06-11T18:41:56.850308753+05:30" leve...on"
Jun 11 18:41:56 wp dockerd[3780]: time="2019-06-11T18:41:56.973913238+05:30" leve...ck"
Jun 11 18:41:56 wp systemd[1]: Started Docker Application Container Engine.
Jun 11 18:43:49 wp dockerd[3780]: time="2019-06-11T18:43:49.019889189+05:30" leve...te"

Hint: Some lines were ellipsized, use -l to show in full.

[root@wp ~]# chkconfig docker on
Note: Forwarding request to 'systemctl enable docker.service'.

Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.


[root@wp ~]# docker pull hello-world
Using default tag: latest
latest: Pulling from library/hello-world
1b930d010525: Pull complete
Digest: sha256:0e11c388b664df8a27a901dce21eb89f11d8292f7fca1b3e3c4321bf7897bffe
Status: Downloaded newer image for hello-world:latest
[root@wp ~]# docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
hello-world         latest              fce289e99eb9        5 months ago        1.84kB
[root@wp ~]# docker run hello-world

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


Comments