无法将图像推送到configuration为代理caching的Dockerregistry

我按照本指南设置了Docker v2registry,充当Docker Hub映像的本地代理caching。 我的Docker守护进程configuration了--insecure-registry--registry-mirror选项指向相同的registry实例。

当通过将图片caching到本地商店来拉取图片时,它可以正常工作。

问题是,当我尝试将图像推送到这样的本地私人registry,我得到一个奇怪的UNSUPPORTED错误。 registry日志说:

 time="2015-11-09T13:20:22Z" level=error msg="response completed with error" err.code=UNSUPPORTED err.message="The operation is unsupported." go.version=go1.4.3 http.request.host="my.registry.io:5000" http.request.id=b1faccb3-f592-4790-bbba-00ebb3a3bfc1 http.request.method=POST http.request.remoteaddr="192.168.0.4:57608" http.request.uri="/v2/mygroup/myimage/blobs/uploads/" http.request.useragent="docker/1.9.0 go/go1.4.2 git-commit/76d6bc9 kernel/3.16.0-4-amd64 os/linux arch/amd64" http.response.contenttype="application/json; charset=utf-8" http.response.duration=2.035918ms http.response.status=405 http.response.written=78 instance.id=79970ec3-c38e-4ebf-9e83-c3890668b122 vars.name="mygroup/myimage" version=v2.2.0 

如果我在registry中禁用代理设置,则推送工作正常。 我在configuration上丢失了什么,或者只是私人registry不能同时充当代理caching?

刚刚碰到这个自己。 原来不支持推送到configuration为代理的私有registry。 看到

https://docs.docker.com/registry/configuration/#proxy

“推送configuration为通过高速cachingconfiguration的registry当前不受支持”。

那太糟糕了。 现在,我将不得不将本地代理caching设置为一个单独的registry。