Procedure: GitLab / Authenticate to the container registry

Objective

For development and testing purposes, you may need to pull container images created in the Build Images Pipeline project locally. To do so, you must authenticate to the that project's container registry. At a high level, users must generate a GitLab personal access token and then authenticate. These steps, when completed, will grant container image pull access to any GitLab container registry the user has rights to.

For general details, see [Authenticate with the Container Registry](https://docs.gitlab.com/ee/user/packages/container_registry/authenticate_with_container_registry.html).

User

  • Solution Delivery Developers
  • Application Operations

Environment

  • 1068805: GitLab (SaaS)

Procedure

  1. Generate a personal access token by following the steps in Create a personal access token, or use an existing one if you created one in the past
  2. Run the command: 
    • docker login registry.gitlab.com --username uniqueid@miamioh.edu
  3. When prompted for the password, enter your Personal Access Token
  4. You should then see the message Login Succeeded

 

Note

  • The authentication object is saved to the file $HOME/.docker/config.json.

 

Details

Article ID: 148613
Created
Fri 1/13/23 9:18 AM
Modified
Wed 3/22/23 11:09 AM
Can you resolve this issue yourself?
Yes! This is self-service with a smile.
Supported Office or Community
University Community of Students, Staff, and Faculty