Centos6.5下安装docker

参考自:https://blog.csdn.net/u013282737/article/details/85246755

1.禁用selinux(特别重要,不然可能pull失败)

vim /etc/selinux/config 将SELINUX设为disabled,注意修改后最好重启下机器。

2.安装docker

执行:yum install docker-io

将docker开机启动:chkconfig docker on

启动docker:service docker start

查看docker版本:docker version

查看docker日志:cat /var/log/docker

查看docker日志:cat /var/log/docker

3.docker加速配置,国外的网可能比较慢,配置国内阿里云源(docker1.7修改方法)

执行编辑命令:vi /etc/sysconfig/docker

加入下面两行
other_args="--registry-mirror=https://wbtwgo1e.mirror.aliyuncs.com"  
OPTIONS='--registry-mirror=https://wbtwgo1e.mirror.aliyuncs.com' 

上一篇:Docker配置加速器


下一篇:虚拟机centos安装mysql遇到 Couldn't resolve host 'mirror