docker推送到非TLSregistry
我正在部署我自己的dockerregistry,并在testing过程中,我希望docker push
送到local:8000
的非TLSregistry。 但是,我得到以下内容:
$ 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。
转到Docker for Mac菜单栏图标 – >首选项 – >高级 – >添加“local:8000”作为不安全的registry:
然后点击“Apply&Restart”