1. 程式人生 > >CentOS install docker

CentOS install docker

自動啟動 file col 啟動 rom star umount pda its

#安裝docker
[root@localhost ~]# yum -y install docker-io
Loaded plugins: fastestmirror
base                                                                            | 3.6 kB  00:00:00
extras                                                                          | 3.4 kB  00:00:00
updates                                                                         
| 3.4 kB 00:00:00 (1/4): extras/7/x86_64/primary_db | 173 kB 00:00:00 (2/4): base/7/x86_64/group_gz | 166 kB 00:00:00 (3/4): updates/7/x86_64/primary_db | 4.3 MB 00:00:01 (4/4): base/7/x86_64/primary_db | 5.9
MB 00:00:06 Determining fastest mirrors * base: mirrors.huaweicloud.com * extras: mirrors.huaweicloud.com (此處省略6000字安裝信息)...... Installed: docker.x86_64 2:1.13.1-68.gitdded712.el7.centos Dependency Installed: audit-libs-python.x86_64 0:2.8.1-3.el7 checkpolicy.x86_64 0:2.5-6.el7 container-selinux.noarch 2
:2.66-1.el7 container-storage-setup.noarch 0:0.10.0-1.gitdf0dcd5.el7 docker-client.x86_64 2:1.13.1-68.gitdded712.el7.centos docker-common.x86_64 2:1.13.1-68.gitdded712.el7.centos libcgroup.x86_64 0:0.41-15.el7 libseccomp.x86_64 0:2.3.1-3.el7 libsemanage-python.x86_64 0:2.5-11.el7 oci-register-machine.x86_64 1:0-6.git2b44233.el7 oci-systemd-hook.x86_64 1:0.1.16-1.git05bd9a0.el7 oci-umount.x86_64 2:2.3.3-3.gite3c9055.el7 policycoreutils-python.x86_64 0:2.5-22.el7 python-IPy.noarch 0:0.75-6.el7 setools-libs.x86_64 0:3.3.8-2.el7 skopeo-containers.x86_64 1:0.1.31-1.dev.gitae64ff7.el7.centos yajl.x86_64 0:2.0.4-4.el7 Dependency Updated: audit.x86_64 0:2.8.1-3.el7 audit-libs.x86_64 0:2.8.1-3.el7 libselinux.x86_64 0:2.5-12.el7 libselinux-python.x86_64 0:2.5-12.el7 libselinux-utils.x86_64 0:2.5-12.el7 libsemanage.x86_64 0:2.5-11.el7 libsepol.x86_64 0:2.5-8.1.el7 policycoreutils.x86_64 0:2.5-22.el7 selinux-policy.noarch 0:3.13.1-192.el7_5.4 selinux-policy-targeted.noarch 0:3.13.1-192.el7_5.4 Complete! #啟動docker [root@localhost ~]# service docker start Redirecting to /bin/systemctl start docker.service ==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units === Authentication is required to manage system services or units. ==== AUTHENTICATION COMPLETE === [root@localhost ~]# #設置docker 開機自動啟動 [weiyj@localhost ~]$ systemctl enable docker ==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-unit-files === Authentication is required to manage system service or unit files. Authenticating as: root Password: ==== AUTHENTICATION COMPLETE === Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service. ==== AUTHENTICATING FOR org.freedesktop.systemd1.reload-daemon === Authentication is required to reload the systemd state. Authenticating as: root Password: ==== AUTHENTICATION COMPLETE === [weiyj@localhost ~]$

CentOS install docker