标签:
客户端上传时候显示错误:
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
标签:
原文地址:http://www.cnblogs.com/flasheryu/p/5918233.html