问题:docker pull manifest unknown blob errors
原因:公司网络是代理模式,所以我的 docker 服务配置成proxy模式:
1 [root@localhost ~]# cat /usr/lib/systemd/system/docker.service 2 [Unit] 3 Description=Docker Application Container Engine 4 Documentation=https://docs.docker.com 5 After=network.target firewalld.service 6 7 [Service] 8 Type=notify 9 Environment="http_proxy=http://192.168.59.241:8888/" "https_proxy=https://192.168.59.241:8888/" 10 ExecStart=/usr/bin/dockerd --insecure-registry 172.19.15.95:4000 11 ExecReload=/bin/kill -s HUP $MAINPID 12 LimitNOFILE=infinity 13 LimitNPROC=infinity 14 LimitCORE=infinity 15 TimeoutStartSec=0 16 Delegate=yes 17 KillMode=process 18 19 [Install] 20 WantedBy=multi-user.target
把配置文件中的 代理去掉:
Environment="http_proxy=http://192.168.59.241:8888/" "https_proxy=https://192.168.59.241:8888/"
1 [root@localhost ~]# cat /usr/lib/systemd/system/docker.service 2 [Unit] 3 Description=Docker Application Container Engine 4 Documentation=https://docs.docker.com 5 After=network.target firewalld.service 6 7 [Service] 8 Type=notify 9 ExecStart=/usr/bin/dockerd --insecure-registry 172.19.15.95:4000 10 ExecReload=/bin/kill -s HUP $MAINPID 11 LimitNOFILE=infinity 12 LimitNPROC=infinity 13 LimitCORE=infinity 14 TimeoutStartSec=0 15 Delegate=yes 16 KillMode=process 17 18 [Install] 19 WantedBy=multi-user.target