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
Procedure
- 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
- Run the command:
docker login registry.gitlab.com --username uniqueid@miamioh.edu
- When prompted for the password, enter your Personal Access Token
- You should then see the message Login Succeeded
Note
- The authentication object is saved to the file $HOME/.docker/config.json.