1. 程式人生 > >005-搭建私有倉庫,上傳映象報錯:server gave HTTP response to HTTPS client

005-搭建私有倉庫,上傳映象報錯:server gave HTTP response to HTTPS client

報錯

  • server gave HTTP response to HTTPS client

解決

  • /etc/docker/目錄下,建立daemon.json檔案。
  • 在檔案中寫入{ "insecure-registries":["192.168.124.1:5000"] }
  • 使用sudo systemctl restart docker重啟 docker 的守護程序