Gitlab CE Docker Image Too Large to Push
Posted 傻子才悲伤
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Gitlab CE Docker Image Too Large to Push相关的知识,希望对你有一定的参考价值。
客户端上传时候显示错误:
unauthorized: authentication required
cat /var/log/messages
显示错误为:
Sep 28 22:12:55 docker4 dockerd: time="2016-09-28T22:12:55.510621993+08:00" level=error msg="Attempting next endpoint for push after error: unauthorized: authentication required"
对应同一时间点在gitlab server上的log里面显示错误:
cat /srv/gitlab/logs/registry/current
2016-09-28_22:12:55.01750 time="2016-09-28T22:12:54.989614996Z" level=error msg="token not to be used before 1475070839 or after 1475071144 - currently 1475071974"
原因为container registry token过期。默认gitlab container registry上传时间为5分钟,改为60分钟即可。
进入admin area,settings:
Container Registry选项下改为60分钟即可。
以上是关于Gitlab CE Docker Image Too Large to Push的主要内容,如果未能解决你的问题,请参考以下文章