? 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