【docker】拉取镜像报证书错误:error pulling image configuration: download failed after attempts=6: tls: failed t

在使用docker时,采用阿里云镜像源时会出现pull失败情况:【docker】拉取镜像报证书错误:error pulling image configuration: download failed after attempts=6: tls: failed t_第1张图片

解决办法:

sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
  "registry-mirrors": ["https://yxzrazem.mirror.aliyuncs.com"]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker

你可能感兴趣的:(docker,容器,运维)