启动nginx报错:
1、配置镜像源
vim /etc/docker/daemon.json
输入以下内容:
{
"registry-mirrors":[
"https://i1el1i0w.mirror.aliyuncs.com",
"https://hub-mirror.c.163.com",
"https://registry.aliyuncs.com",
"https://registry.docker-cn.com",
"https://docker.mirrors.ustc.edu.cn"
]
}
2、重启docker服务
重启守护进程
sudo systemctl daemon-reload
重启服务
sudo systemctl start docker
3、下载镜像
docker pull nginx
docker images