更换Docker镜像源

发布于 2025年01月10日

方式一

echo '{"registry-mirrors": ["https://docker.1ms.run"]}' | sudo tee /etc/docker/daemon.json > /dev/null
systemctl daemon-reload
systemctl restart docker

方式二

docker pull docker.1ms.run/nginx:latest