试装,仅仅是做个记录。
[root@localhost ~]# sudo tee /etc/yum.repos.d/docker.repo <<-'EOF' > ; > [dockerrepo] > name=Docker Repository > baseurl=https://yum.dockerproject.org/repo/main/centos/$releasever/ > enable=1 > gpgcheck=1 > gpgkey=https://yum.dockerproject.org/gpg > EOF ; [dockerrepo] name=Docker Repository baseurl=https://yum.dockerproject.org/repo/main/centos/$releasever/ enable=1 gpgcheck=1 gpgkey=https://yum.dockerproject.org/gpg [root@localhost ~]# sudo yum install -y docker-engine Loaded plugins: fastestmirror, refresh-packagekit, security Setting up Install Process Loading mirror speeds from cached hostfile * base: mirrors.tuna.tsinghua.edu.cn * extras: mirrors.njupt.edu.cn * updates: mirrors.tuna.tsinghua.edu.cn dockerrepo | 2.9 kB 00:00 dockerrepo/primary_db | 3.3 kB 00:00 Resolving Dependencies --> Running transaction check ---> Package docker-engine.x86_64 0:1.7.1-1.el6 will be installed --> Processing Dependency: libcgroup for package: docker-engine-1.7.1-1.el6.x86_64 --> Running transaction check ---> Package libcgroup.x86_64 0:0.40.rc1-27.el6_10 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: docker-engine x86_64 1.7.1-1.el6 dockerrepo 4.5 M Installing for dependencies: libcgroup x86_64 0.40.rc1-27.el6_10 updates 131 k Transaction Summary ================================================================================ Install 2 Package(s) Total download size: 4.7 M Installed size: 20 M Downloading Packages: (1/2): docker-engine-1.7.1-1.el6.x86_64.rpm | 4.5 MB 00:04 (2/2): libcgroup-0.40.rc1-27.el6_10.x86_64.rpm | 131 kB 00:00 -------------------------------------------------------------------------------- Total 931 kB/s | 4.7 MB 00:05 warning: rpmts_HdrFromFdno: Header V4 RSA/SHA1 Signature, key ID 2c52609d: NOKEY Retrieving key from https://yum.dockerproject.org/gpg Importing GPG key 0x2C52609D: Userid: "Docker Release Tool (releasedocker) <docker@docker.com>" From : https://yum.dockerproject.org/gpg Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : libcgroup-0.40.rc1-27.el6_10.x86_64 1/2 Installing : docker-engine-1.7.1-1.el6.x86_64 2/2 Verifying : docker-engine-1.7.1-1.el6.x86_64 1/2 Verifying : libcgroup-0.40.rc1-27.el6_10.x86_64 2/2 Installed: docker-engine.x86_64 0:1.7.1-1.el6 Dependency Installed: libcgroup.x86_64 0:0.40.rc1-27.el6_10 Complete! [root@localhost ~]# [root@localhost ~]# docker -v Docker version 1.7.1, build 786b29d
--END-- 2019年9月28日17:45:27