如何在linux下配置Docker使用阿里云aliyun的镜像

Ubuntu

sudo mkdir -p /etc/systemd/system/docker.service.d
sudo tee /etc/systemd/system/docker.service.d/mirror.conf <<-'EOF'
[Service]
ExecStart=
ExecStart=/usr/bin/docker daemon -H fd:// --registry-mirror=https://xxxxx.mirror.aliyuncs.com
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker

Windows 10

{
  "registry-mirrors": [
    "https://vyicveys.mirror.aliyuncs.com"
  ],
  "insecure-registries": [
    "192.168.1.13:5000"
  ],
  "experimental": true
}

你可能感兴趣的:(如何在linux下配置Docker使用阿里云aliyun的镜像)