Feedback

Chat Icon

Cloud Native CI/CD with GitLab

From Commit to Production Ready

GitLab Container Registry
21%

Authenticate with GitLab Container Registry

You can use your GitLab username and password to authenticate with GitLab Container Registry, but it's not recommended. Instead, you should use a personal access token (PAT). To create one, go to your profile page, click on Preferences and then on Access Tokens. Give your token a name (e.g. Learning), set an expiration date, and select the api scope. Then click on Create personal access token and copy the token to your clipboard.

You can also use the following link to go directly to the access token creation page:

https://gitlab.com/-/user_settings/personal_access_tokens

Export the token as an environment variable and reload your shell. This is an example of how to do it - you should replace the token with your own:

cat <> $HOME/.bashrc && \
source $HOME/.bashrc

Cloud Native CI/CD with GitLab

From Commit to Production Ready

Enroll now to unlock all content and receive all future updates for free.