centos7上安装docker
2018-12-29 本文已影响0人
weijie09
centos7上安装docker
1、安装docker
yum -y install docker
2、查看docker版本
docker version
3、启动docker
systemctl start docker
systemctl enable docker
4、配置阿里云docker加速镜像
cat daemon.json
{
"registry-mirrors": [
"https://kfwkfulq.mirror.aliyuncs.com",
"https://2lqq34jg.mirror.aliyuncs.com",
"https://pee6w651.mirror.aliyuncs.com",
"https://registry.docker-cn.com",
"http://hub-mirror.c.163.com"
],
"dns": ["8.8.8.8","8.8.4.4"]
}
$ sudo systemctl restart docker