Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
docker推送到非TLS注册表_Docker_Docker Registry - Fatal编程技术网

docker推送到非TLS注册表

docker推送到非TLS注册表,docker,docker-registry,Docker,Docker Registry,我正在部署我自己的docker注册表,在测试期间,我希望docker将推送到local: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 resp

我正在部署我自己的docker注册表,在测试期间,我希望
docker将
推送到
local: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客户端是Mac docker。

转到Mac docker菜单栏图标->首选项->高级->添加“本地:8000”作为不安全注册表:

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