docker / docker/cli

Show login name for failed docker push/pull command

Open
#1,202 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/authentication area/distribution area/ux
Dominant language
Go
Stars
6.1k
Forks
2.2k
Avg merge
1d 15h
Merged PRs (30d)
43

Description

Description

It will save a lot of time if docker push reported username when the push fails.

Steps to reproduce the issue:

  1. docker login
  2. push into repository without access rights

Describe the results you received:

denied: requested access to the resource is denied

Describe the results you expected:

denied: requested access to the resource is denied (username: cyberbuilder)

Additional information you deem important (e.g. issue happens only occasionally):

https://github.com/docker/cli/blob/master/cli/command/image/push.go

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with cli/command/image/push.go and reproduce the failure using docker login followed by a push to a repository without access rights. Trace how the denied error is reported and verify that the completed change includes the logged-in username in the failure message for docker push and pull.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.