[wangshumin@CentOSNode4 ~]$ sudo yum -y install docker-io
[sudo] wangshumin 的密码:
对不起,请重试。
[sudo] wangshumin 的密码:
已加载插件:fastestmirror, langpacks
base | 3.6 kB 00:00:00
extras | 3.4 kB 00:00:00
updates | 3.4 kB 00:00:00
(1/2): extras/7/x86_64/primary_db | 150 kB 00:00:03
(2/2): updates/7/x86_64/primary_db | 3.6 MB 00:00:42
Determining fastest mirrors
* base: mirrors.nwsuaf.edu.cn
* extras: mirrors.nwsuaf.edu.cn
* updates: mirrors.nwsuaf.edu.cn
正在解决依赖关系
--> 正在检查事务
---> 软件包 docker.x86_64.2.1.13.1-63.git94f4240.el7.centos 将被 安装
--> 正在处理依赖关系 docker-common = 2:1.13.1-63.git94f4240.el7.centos,它被软件包 2:docker-1.13.1-63.git94f4240.el7.centos.x86_64 需要
--> 正在处理依赖关系 docker-client = 2:1.13.1-63.git94f4240.el7.centos,它被软件包 2:docker-1.13.1-63.git94f4240.el7.centos.x86_64 需要
--> 正在检查事务
---> 软件包 docker-client.x86_64.2.1.13.1-63.git94f4240.el7.centos 将被 安装
Redirecting to /bin/systemctl start docker.service
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===Authentication is required to manage system services or units.
Authenticating as: wangshumin
Password:
==== AUTHENTICATION COMPLETE ===
[wangshumin@CentOSNode4 ~]$ 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 日 2018-07-15 19:17:41 CST; 8s ago
Docs: http://docs.docker.com
Main PID: 1975 (dockerd-current)
CGroup: /system.slice/docker.service
├─1975 /usr/bin/dockerd-current --add-runtime docker-runc=/usr/libexec/docker/docker-runc-current --default-runtime=docker-runc --exec-opt native.cgroupdriver=systemd --userla...
└─1979 /usr/bin/docker-containerd-current -l unix:///var/run/docker/libcontainerd/docker-containerd.sock --metrics-interval=0 --start-timeout 2m --state-dir /var/run/docker/li...
7月 15 19:17:40 CentOSNode4 dockerd-current[1975]: time="2018-07-15T19:17:40.547227560+08:00" level=warning msg="Docker could not enable SELinux on the host system"
7月 15 19:17:40 CentOSNode4 dockerd-current[1975]: time="2018-07-15T19:17:40.576338719+08:00" level=info msg="Graph migration to content-addressability took 0.00 seconds"
7月 15 19:17:40 CentOSNode4 dockerd-current[1975]: time="2018-07-15T19:17:40.576838799+08:00" level=info msg="Loading containers: start."
7月 15 19:17:40 CentOSNode4 dockerd-current[1975]: time="2018-07-15T19:17:40.666450713+08:00" level=info msg="Firewalld running: true"
7月 15 19:17:41 CentOSNode4 dockerd-current[1975]: time="2018-07-15T19:17:41.012591941+08:00" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0...IP address"
7月 15 19:17:41 CentOSNode4 dockerd-current[1975]: time="2018-07-15T19:17:41.267764552+08:00" level=info msg="Loading containers: done."
7月 15 19:17:41 CentOSNode4 dockerd-current[1975]: time="2018-07-15T19:17:41.347966866+08:00" level=info msg="Daemon has completed initialization"
7月 15 19:17:41 CentOSNode4 dockerd-current[1975]: time="2018-07-15T19:17:41.347991045+08:00" level=info msg="Docker daemon" commit="94f4240/1.13.1" graphdriver=overlay2 version=1.13.1
7月 15 19:17:41 CentOSNode4 systemd[1]: Started Docker Application Container Engine.
7月 15 19:17:41 CentOSNode4 dockerd-current[1975]: time="2018-07-15T19:17:41.361569276+08:00" level=info msg="API listen on /var/run/docker.sock"
Hint: Some lines were ellipsized, use -l to show in full.
[wangshumin@CentOSNode4 ~]$