centos7 dockerインストールメモ

centos7にdockerを入れてみる。

yum -y install docker-io
service docker start
chkconfig docker on
systemctl status docker.service
● docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)
   Active: active (running) since 木 2016-02-04 21:56:39 JST; 23s ago
     Docs: http://docs.docker.com
 Main PID: 14787 (docker)
   CGroup: /system.slice/docker.service
           mq14787 /usr/bin/docker daemon --selinux-enabled

 2月 04 21:56:22 localhost.localdomain docker[14787]: time="2016-02-04T...
 2月 04 21:56:38 localhost.localdomain docker[14787]: time="2016-02-04T...
 2月 04 21:56:38 localhost.localdomain docker[14787]: time="2016-02-04T...
 2月 04 21:56:38 localhost.localdomain docker[14787]: time="2016-02-04T...
 2月 04 21:56:38 localhost.localdomain docker[14787]: time="2016-02-04T...
 2月 04 21:56:39 localhost.localdomain docker[14787]: time="2016-02-04T...
 2月 04 21:56:39 localhost.localdomain docker[14787]: time="2016-02-04T...
 2月 04 21:56:39 localhost.localdomain docker[14787]: time="2016-02-04T...
 2月 04 21:56:39 localhost.localdomain docker[14787]: time="2016-02-04T...
 2月 04 21:56:39 localhost.localdomain systemd[1]: Started Docker Appli...
Hint: Some lines were ellipsized, use -l to show in full.
docker pull centos
docker run -i -t centos /bin/bash
yum update -y
exit
docker ps -a
docker commit ID centos/test
docker run -i -t centos/test /bin/bash