Sorry if this is a stupid question… I want to login to the container registry with
docker login registry.gitlab.com -u <username> -p <password>
This doesn’t work with my gitlab.com username and password, presumably because I’m using 2FA, and I get the error
Error response from daemon: Get https://registry.gitlab.com/v2/: unauthorized: HTTP Basic: Access denied
My question is, what should I be using to log in? Do I need to create a personal access token? And if so, what scopes should I grant it?