

#docker 登录私有docker镜像库报错:server gave HTTP response to HTTPS client
source link: https://xmanyou.com/gitlab-docker-private-registry-gave-http-response-to-https-client/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

#docker 登录私有docker镜像库报错:server gave HTTP response to HTTPS client
在内网通过gitlab搭建了一个docker镜像库,但是在使用docker登录时,却报了这么个错误:
docker login 192.168.1.12:49264
Username: zhangzhibin
Password:
Error response from daemon: Get https://192.168.1.12:49264/v2/: http: server gave HTTP response to HTTPS client
从错误描述来看,错误的来源是docker daemon。
错误的原因是,
- docker客户端默认使用的是https连接
- 私有镜像库没有配置https的时候,默认返回的是http信息
二者不一致。
- 为镜像库配置https,并使用配置了https的地址去连接docker镜像库
- 客户端允许http连接
可以根据冰河团队提供的解决方法进行修改
可以通过在docker daemon.json中配置insecure-registries,来解决https问题。
文件位置:
- linux环境中,daemon.json位于: /etc/docker/daemon.json
- 在mac或者windows中,可以通过ui界面来修改配置:
改完,重启docker daemon 即可。
阿斌
Read more posts by this author.
Recommend
-
17
版权声明 本站原创文章 由 萌叔 发表 转载请注明 萌叔 | http://vearne.cc 警告:本文仅用于萌叔自己总结之用,对其它人而言可能毫无营养,没有阅读价值。 在k8s中要使用自己搭建的私有仓库,还需要一些额外...
-
6
在Kubernetes中pull私有镜像 2019-01-12 08:51:37 +08 字数:1330 标签: K8s Docke...
-
9
搭建私有docker镜像仓库 作者: wencst 分类: linux,Uncategorized,
-
10
kubeadm init 时从本地私有仓库下载镜像 作者: wencst 分类: docker,云计算
-
13
V2EX › 程序员 GitLab CI/CD - publish 镜像到私有镜像仓库出错 JasonLaw · 4 小时 35...
-
10
Docker 私有 Registry 的镜像 GC 问题 2020-09-07 Docker 约 942 字 预计阅读 2 分钟...
-
9
Docker 虽然提供公有镜像仓库 Docker hub,但是满足不了绝大部分企业对镜像仓库私有化部署的需求。 私有镜像仓库解决方案中,作为 CNCF 项目的 Harbor 长期处于统治地...
-
7
👨🏻🎓博主介绍:大家好!我是李大白,一名运维容器运维工程师,热爱分享知识🌟 🌈擅长领域:云原生、数据库、自动化运维🙏🏻如果本文章对小伙伴们有帮助的话,🍭关注+👍🏻点赞+🗣评论+📦收藏!🤝如果在文章描述时如有错,恳请各位大佬指正,在...
-
8
搭建私有Docker镜像仓库学习笔记 搭建没有GUI界面的仓库 通过Docker官方提供的镜像搭建镜像仓库 docker run --name registry --restart=always -p 5000:5000 -d -v registry-data:/var/lib...
-
6
【踩坑】Docker 下载镜像时报错 捕捉一只爱折腾的绯鞠 ...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK