docker push失败




今天公司遇到一个问题就是docker可以实现pull,但是无法push 提示unsupported push不支持。






之后去查看
registry.log的日志
Nov 9 20:13:20 192.168.16.1 registry[2741]: time="2017-11-09T12:13:20.6156505Z" level=error msg="response completed with error" auth.user.name=***** err.code=unsupported err.message="The operation is unsupported." go.version=go1.7.5 http.request.host=**** http.request.id=1594db54-556c-41cd-b9cb-a452beab26ac http.request.method=POST http.request.remoteaddr=**** http.request.uri="/v2/qjd/clms-node/blobs/uploads/" http.request.useragent="docker/17.04.0-ce go/go1.7.5 git-commit/4845c56 kernel/3.10.0-229.el7.x86_64 os/linux arch/amd64 UpstreamClient(Docker-Client/17.04.0-ce \\(linux\\))" http.response.contenttype="application/json; charset=utf-8" http.response.duration=7.841239ms http.response.status=405 http.response.written=78 instance.id=c3f2854f-2532-4687-9349-e7dc9d954caa service=registry vars.name="qjd/clms-node" version=v2.6.1
详细请看 噜噜噜的博客
没有明显的报错
err.message="The operation is unsupported.“
http.response.status=405 http.response.written=78
之后找了一些资料发现
proxy是registry v2的pull though cache功能。开启了cache的话就无法做push了。registry的官网有这个说明。
因为我这里是harbor的本地仓库 并且是docker部署的
之后找到registry的配置文件
common/config/registry/config.yml

注释吊proxy之后就恢复了

详细请看 噜噜噜的博客

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值