确保Docker已经删除的情况下,执行如下命令
[root@h103 ~]# curl -sSL https://get.docker.com/ | sh
+ sh -c 'sleep 3; yum -y -q install docker-engine'
If you would like to use Docker as a non-root user, you should now consider
adding your user to the "docker" group with something like:
sudo usermod -aG docker your-user
Remember that you will have to log out and back in for this to take effect!
[root@h103 ~]#
启动Docker
[root@h103 ~]# service docker start
Redirecting to /bin/systemctl start docker.service
[root@h103 ~]# 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 2016-01-19 17:49:51 CST; 5s ago
Docs: https://docs.docker.com
Main PID: 4514 (docker)
CGroup: /system.slice/docker.service
└─4514 /usr/bin/docker daemon -H fd://
Jan 19 17:49:48 h103 systemd[1]: Starting Docker Application Container Engine...
Jan 19 17:49:48 h103 docker[4514]: time="2016-01-19T17:49:48.493901017+08:00" level=info msg="API listen on /var/run/docker.sock"
Jan 19 17:49:48 h103 docker[4514]: time="2016-01-19T17:49:48.523287426+08:00" level=warning msg="Usage of loopback devices i...ction."
Jan 19 17:49:51 h103 docker[4514]: time="2016-01-19T17:49:51.065772044+08:00" level=info msg="Firewalld running: true"
Jan 19 17:49:51 h103 docker[4514]: time="2016-01-19T17:49:51.152288274+08:00" level=info msg="Default bridge (docker0) is as...ddress"
Jan 19 17:49:51 h103 docker[4514]: time="2016-01-19T17:49:51.279193343+08:00" level=info msg="Loading containers: start."
Jan 19 17:49:51 h103 docker[4514]: time="2016-01-19T17:49:51.279523520+08:00" level=info msg="Loading containers: done."
Jan 19 17:49:51 h103 docker[4514]: time="2016-01-19T17:49:51.279547046+08:00" level=info msg="Daemon has completed initialization"
Jan 19 17:49:51 h103 docker[4514]: time="2016-01-19T17:49:51.279578666+08:00" level=info msg="Docker daemon" commit=a34a1d5 ...n=1.9.1
Jan 19 17:49:51 h103 systemd[1]: Started Docker Application Container Engine.
Hint: Some lines were ellipsized, use -l to show in full.
[root@h103 ~]# ps faux | grep docker
root 4586 0.0 0.0 112644 956 pts/1 S+ 17:50 0:00 | \_ grep --color=auto docker
root 4514 1.2 0.5 387160 22600 ? Ssl 17:49 0:00 /usr/bin/docker daemon -H fd://
[root@h103 ~]# ps -Lf 4514
UID PID PPID LWP C NLWP STIME TTY STAT TIME CMD
root 4514 1 4514 0 6 17:49 ? Ssl 0:00 /usr/bin/docker daemon -H fd://
root 4514 1 4515 0 6 17:49 ? Ssl 0:00 /usr/bin/docker daemon -H fd://
root 4514 1 4516 0 6 17:49 ? Ssl 0:00 /usr/bin/docker daemon -H fd://
root 4514 1 4517 0 6 17:49 ? Ssl 0:00 /usr/bin/docker daemon -H fd://
root 4514 1 4521 0 6 17:49 ? Ssl 0:00 /usr/bin/docker daemon -H fd://
root 4514 1 4526 0 6 17:49 ? Ssl 0:00 /usr/bin/docker daemon -H fd://
[root@h103 ~]#
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。