Add login command to container registry empty state message
Problem to solve
@lbot in Slack suggested:
Add a step to [the container registry empty state content]:
docker login <gitlab instance registry url>
. Last night I wanted to add an image to my repo registry. I saw the [container registry empty state content]. It said run those two things. I ran the first, and got a 403. Then I realized, I wasn't logged in. If it said "log in to this registry if you haven't already" I suspect others wouldn't be met with that micro friction of an easily avoidable error
This makes total sense to me and I feel this would be a good addition to the empty state component, giving a new user all the necessary steps to push their first image in one place (and a link to further documentation for more reading).
Intended users
Proposal
Add the docker login [url]
command to the empty state content.
What does success look like, and how can we measure that?
The empty state component provides all the commands for a first time user to push an image.