要准备拉镜像,但是不成功
然后我就ping baidu 看起来是网络问题
可以使用这个命令:
([ -f /etc/docker/daemon.json ] || mkdir -p /etc/docker) && echo '{ "registry-mirrors" : [ "https://docker.1panel.live","https://docker.m.daocloud.io","https://hub.rat.dev"] }' > /etc/docker/daemon.json && sudo systemctl restart docker && sleep 1 && docker info | grep -A 3 "Registry Mirrors"
成功