### 1. Ubuntu ```shell sudo mkdir -p /etc/docker sudo tee /etc/docker/daemon.json <<-'EOF' { "registry-mirrors": ["https://ywylpup9.mirror.aliyuncs.com"] } EOF sudo systemctl daemon-reload sudo systemctl restart docker ``` ### 2.CentOS ```shell sudo mkdir -p /etc/docker sudo tee /etc/docker/daemon.json <<-'EOF' { "registry-mirrors": ["https://ywylpup9.mirror.aliyuncs.com"] } EOF sudo systemctl daemon-reload sudo systemctl restart docker ```