docker推送到非TLS注册表

时间:2016-12-30 18:58:38

标签: docker docker-registry

我正在部署我自己的docker注册表,在测试期间,我想docker pushlocal:8000的非TLS注册表。但是,我得到以下内容:

$ docker push local:8000/alexflint/kayak-test-foo
The push refers to a repository [local:8000/alexflint/kayak-test-foo]
Get https://local:8000/v1/_ping: http: server gave HTTP response to HTTPS client

我的理解是docker客户端希望与HTTPS服务器通信,但我的服务器正在为HTTP服务。有没有办法告诉docker push使用HTTP?

我使用的docker客户端是Docker for Mac。

1 个答案:

答案 0 :(得分:0)

转到Docker for Mac菜单栏图标 - >偏好 - >高级 - >添加“local:8000”作为不安全的注册表:

enter image description here

然后点击“应用并重新启动”

相关问题