CentOS7にDockerをインストールするメモ

2017年12月20日

# yum install docker
# service docker start
# chkconfig docker on
# systemctl start docker.service
# systemctl enable docker.service

# docker pull centos
Pulling repository centos
192178b11d36: Download complete
70441cac1ed5: Download complete
ae0c2d0bdc10: Download complete
511136ea3c5a: Download complete
5b12ef8fd570: Download complete

CentOSイメージの確認
# docker images centos
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
centos centos5 192178b11d36 2 weeks ago 466.9 MB
centos centos6 70441cac1ed5 2 weeks ago 215.8 MB
centos centos7 ae0c2d0bdc10 2 weeks ago 224 MB
centos latest ae0c2d0bdc10 2 weeks ago 224 MB

Docker実行
# docker run -i -t centos /bin/bash

Linux

Posted by arkgame