I want to check if a container on gitlab is built properly with the right content. As a first step, I'm trying to login to the registry by running the following command:
sudo docker login -u "ci-registry-user" -p "some-token" "registry.gitlab.com/some-registry:container"
However, I run into Get "https://registry.gitlab.com/v2/": unauthorized: HTTP Basic: Access denied
errors.
My question is in two folds:
- How do I access the hosted containers on gitlab? My goal is to access the container and run
docker exec -it container_name bash && cat /some/path/to_container.py
- Is there an alternative way to achieve this without logging in to the registry?