2015-10-27
網站
https://wiki.centos.org/zh-tw/Cloud/Docker
Docker 是一個開源的引擎,透過輕量級、便攜、自給自足、能執行於任何環境的容器,自動化應用程式的部署。
安裝
$ sudo yum -y install docker
|
立刻啟動
$ sudo systemctl start docker |
檢查
[root@localhost ~]# ps aux | grep docker
root 4752 0.3 1.3 289320 13676 ? Ssl 09:22 0:00 /usr/bin/docker -d --selinux-enabled
root 4904 0.0 0.0 112640 960 pts/0 R+ 09:23 0:00 grep --color=auto docker
[root@localhost ~]#
[root@localhost ~]# systemctl status docker
docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled)
Active: active (running) since Tue 2015-10-27 09:22:48 CST; 46s ago
Docs: http://docs.docker.com
Main PID: 4752 (docker)
CGroup: /system.slice/docker.service
└─4752 /usr/bin/docker -d --selinux-enabled
Oct 27 09:22:28 localhost.localdomain systemd[1]: Starting Docker Application...
Oct 27 09:22:28 localhost.localdomain docker[4752]: time="2015-10-27T09:22:28...
Oct 27 09:22:30 localhost.localdomain docker[4752]: time="2015-10-27T09:22:30...
Oct 27 09:22:41 localhost.localdomain docker[4752]: time="2015-10-27T09:22:41...
Oct 27 09:22:44 localhost.localdomain docker[4752]: time="2015-10-27T09:22:44...
Oct 27 09:22:48 localhost.localdomain docker[4752]: time="2015-10-27T09:22:48...
Oct 27 09:22:48 localhost.localdomain docker[4752]: time="2015-10-27T09:22:48...
Oct 27 09:22:48 localhost.localdomain docker[4752]: time="2015-10-27T09:22:48...
Oct 27 09:22:48 localhost.localdomain docker[4752]: time="2015-10-27T09:22:48...
Oct 27 09:22:48 localhost.localdomain systemd[1]: Started Docker Application ...
Hint: Some lines were ellipsized, use -l to show in full.
[root@localhost ~]#
若要開機時自動啟動
$ sudo systemctl enable docker |
(完)
相關
什麼是 Docker
10個Q&A快速認識Docker
Docker 實作入門
《Docker —— 從入門到實踐》正體中文版
沒有留言:
張貼留言