docker / docker/cli

Error message discoverability for `docker image push`

Open
#3,396 2 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

I ran docker image push ... and the output showed repeated attempts retrying to push four layers:

c8c6a5b96e52: Retrying in 9 seconds
9cf14d3426ca: Retrying in 10 seconds
cb8245e98621: Retrying in 10 seconds
9321ff862abb: Retrying in 10 seconds

I wish it would show an error message while retrying so I would not need to guess what the problem is. There was nothing in the docker daemon logs. If I recall correctly, even when it stops retrying, no specific error is printed.

Version:

Client:
Cloud integration: 1.0.14
Version: 20.10.6
API version: 1.41
Go version: go1.16.3
Git commit: 370c289
Built: Fri Apr 9 22:49:36 2021
OS/Arch: windows/amd64
Context: default
Experimental: true

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 at the docker image push command and trace the retry output path. Reproduce a failed push, then identify where an actionable error should be surfaced during retries and after retrying stops; done means the output explains the failure instead of only showing retry messages.

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
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.