Force To Use Docker Mirror Instead Of Pulling From Docker.Io

Docker
Configuration
Mirror
Baidubce.com
Pulling
Image
Tutorial
This article guides you through the process of configuring Docker to pull images from a specific mirror, such as baidubce.com, instead of the default docker.io. The article also explains that the configuration may not work until you explicitly pull from the specified mirror.
Published

October 5, 2023


even if you configure /etc/docker/daemon.json like this (note: you still need to do this):

{ "registry-mirrors":
["https://mirror.baidubce.com"]
}

it is not fully working until:

sudo -E docker pull mirror.baidubce.com/significantgravitas/auto-gpt