设置镜像加速器
vim /etc/docker/daemon.json
{
"registry-mirrors": ["https://fy707np5.mirror.aliyuncs.com"]
}
systemctl daemon-reload
systemctl restart docker
docker拉取镜像:
docker run -d --restart=unless-stopped -p 8080:8080 rancher/server:stable
设置镜像加速器
vim /etc/docker/daemon.json
{
"registry-mirrors": ["https://fy707np5.mirror.aliyuncs.com"]
}
systemctl daemon-reload
systemctl restart docker
docker拉取镜像:
docker run -d --restart=unless-stopped -p 8080:8080 rancher/server:stable