一、本地仓库报错:server gave HTTP response to HTTPS client

  1. 打开文件/etc/docker/daemon.json(没有就创建),增加下面节点 ```shell { “insecure-registries”: [“172.28.66.220:8082”] }
  1. <br />2. 然后使用热更或重启docker
  2. ```shell
  3. # 不重启,热更
  4. # sudo kill -1 $(pidof dockerd)
  5. sudo kill -SIGHUP $(pidof dockerd)
  6. # 重启
  7. service docker restart

二、无权限(Got permission denied while trying to connect to the Docker daemon)

  1. 将当前用户添加到组

    1. sudo usermod -aG docker ${USER_NAME}
  2. 更新组

    newgrp docker