Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Do you need personal access token for gitlab container registry?


Asked by Sariyah Montgomery on Dec 04, 2021 FAQ



Starting in GitLab 8.12, if you have two-factor authentication enabled in your account, you need to pass a personal access token instead of your password to sign in to the Container Registry. Support for multiple level image names was added in GitLab 9.1.
Furthermore,
First log in to GitLab’s Container Registry using your GitLab username and password. If you have 2FA enabled you need to use a personal access token: docker login registry.gitlab.com
In fact, Deploy tokens allow you to download (git clone) or push and pull packages and container registry images of a project without having a user and a password. Deploy tokens can be managed by maintainers only. Deploy tokens cannot be used with the GitLab API.
Accordingly,
Authenticate with Git using HTTP Basic Authentication. In both cases, you authenticate with a personal access token in place of your password. Personal access tokens are: Required when two-factor authentication (2FA) is enabled. Similar to project access tokens, but are attached to a user rather than a project.
Additionally,
Docker Registry manifest v1 support was added in GitLab 8.9 to support Docker versions earlier than 1.10. Starting in GitLab 8.12, if you have two-factor authentication enabled in your account, you need to pass a personal access token instead of your password to sign in to the Container Registry.