docker拉取镜像失败

一、拉取镜像失败

Trying to pull repository docker.io/library/nginx ...
Get https://registry-1.docker.io/v2/: x509: certificate signed by unknown authority

二、解决方法

配置daemon.json

vim /etc/docker/daemon.json

  {
      "registry-mirrors": ["https://8f6a79wk.mirror.aliyuncs.com"]
  }

原文地址:https://www.cnblogs.com/wuchangblog/p/14833098.html