能夠去訪問官網:https://docs.docker.com/install/linux/docker-ce/centos/linux
sudo mkdir -p /etc/docker sudo tee /etc/docker/daemon.json <<-'EOF' { "registry-mirrors": ["https://XXXX.mirror.aliyuncs.com"] } EOF sudo systemctl daemon-reload sudo systemctl restart docker
docker info //顯示 Docker 系統信息,包括鏡像和容器數
經過輸出可知配置成功
docker