添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
Login to the docker registry by issuing the command cat ~/my_password.txt | docker login --username <username> --password-stdin where my_password.txt contains the token you just created. You should receive feedback that it was successful and can even inspect that it was added to your credentials manager (I am using wincred ). Note you may want to update the documentation as it warns that passing the token on the command line is not safe and you should instead use the way I have described that is in the docker documentation.
  • Pull a small image, e.g. the official python image from docker and tag it with the name of your private repo.
  • Push the image and you should see that it is successful.
  • Pull or build a large image, e.g. over 2GB and tag it with the name of your private repo.
  • Push the image and you should see that it fails after a few minutes with the error unauthorized: authentication required .
  • this error when pushing large images .

    Either the large image should be pushed to the container registry with the current configuration. Or if that is not possible, then there should be access to be able to extend the default token expiration above 5 minutes for the registry when using Gitlab.com. I presume that the Admin area > Settings > CI/CD > Container Registry > Authorization token duration (minutes) only exists on self-managed Gitlab instances and not on Gitlab SAAS because I do not see it anywhere.

    #361279 (comment 1012697106)

    Edited by Manuel Grabowski