下载
yum install http://mirrors.yun-idc.com/epel/6/i386/epel-release-6-8.noarch.rpm
安装
yum install docker-io
如果报错,跟新CA证书
yum --disablerepo=epel -y update ca-certificates
启动docker
service docker start
加入开机启动
chkconfig docker on
重建docker网络
pkill docker
iptables -t nat -Fifconfig docker0 down
brctl delbr docker0
docker dead but pid file exists 问题
sudo yum-config-manager --enable public_ol6_latest
sudo yum install device-mapper-event-libs
docker 启动mysql镜像
docker run --name mysql22 -p 3306:3306 -e MYSQL\_ROOT\_PASSWORD=123456 -d mysql