疑難雜症記錄

chaofu發表於2020-08-05

homestead Ubuntu18.04 安裝 docker 報找不到 docker.ce


$ sudo apt install apt-transport-https ca-certificates curl software-properties-common
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg |sudo apt-key add -
$ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic test"
$ sudo apt update
$ sudo apt install docker-ce

docker pull *** 映象慢或者不成功

// 錯誤提示
error pulling p_w_picpath configuration: Get https://dseasb33srnrn.cloudfront.net/registry-v2/docker/registry/v2/blobs/sha256/28/28525f9a6e46bd6a033b3a3e5f5f64b28d93698b0a23cdb8d66b43b8d8e6b7c9/data?Expires=1506565630&Signature=K0Wu-U81DZM37w6nyV~SnDFGFTtzXQWpFHbwgrb5sAvVbfxgPZgS9cCYNsowHIog-2o681Vh~-520lKvLWLb~bLiwaORsVEeG8XDJ4AH4bffqDRpjBTQinNmWSifIMbIXoxh2Ii5IHTZtPvzzT67Z9or~V7CgkIHF8hTtpDAT-I_&Key-Pair-Id=APKAJECH5M7VWIS5YZ6Q: dial tcp: lookup dseasb33srnrn.cloudfront.net on 192.168.0.1:53: read udp 192.168.1.75:40503->192.168.0.1:53: i/o timeout


// 處理方法
vi /etc/docker/daemon.json

{
  "registry-mirrors": [
    "https://registry.docker-cn.com",
    "http://hub-mirror.c.163.com",
    "https://3laho3y3.mirror.aliyuncs.com",
    "http://f1361db2.m.daocloud.io",
    "https://registry.docker-cn.com"
  ],
  "insecure-registries": [],
  "debug": true,
  "experimental": true
}
// 重啟 docker
本作品採用《CC 協議》,轉載必須註明作者和本文連結

相關文章