Show login name for failed docker push/pull command
Nobody has claimed this yet.
- 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:
docker login- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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