Docker使用中遇到的问题
生活随笔
收集整理的這篇文章主要介紹了
Docker使用中遇到的问题
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Error response from daemon: Get “https://registry-1.docker.io/v2/”: http: server gave HTTP response to HTTPS client
1、打開daemon.json文件(沒有就創建)
vi /etc/docker/daemon.json2、在里面輸入鏡像配置:
{"registry-mirrors": ["https://registry.docker-cn.com","https://docker.mirrors.ustc.edu.cn","http://hub-mirror.c.163.com"] }Docker中國區官方鏡像:https://registry.docker-cn.com
中國科技大學:https://docker.mirrors.ustc.edu.cn
網易:http://hub-mirror.c.163.com
3、重啟docker服務
systemctl daemon-reload systemctl restart docker4、查看是否成功
docker info總結
以上是生活随笔為你收集整理的Docker使用中遇到的问题的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Windows Nginx 反向代理 M
- 下一篇: The server selected