8000 Add support for docker push --quiet by thaJeztah · Pull Request #2197 · docker/cli · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add support for docker push --quiet #2197

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 13, 2019

Conversation

thaJeztah
Copy link
Member

- Description for the changelog

+ Add support for docker push --quiet

- A picture of a cute animal (not mandatory but encouraged)

image

Sorry, something went wrong.

Signed-off-by: Justyn Temme <justyntemme@gmail.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah
Copy link
Member Author

ping @silvin-lubecki @kolyshkin PTAL

Copy link
Collaborator
@albers albers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Completion LGTM.

Copy link
Contributor
@silvin-lubecki silvin-lubecki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator
@cpuguy83 cpuguy83 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

8000

LGTM

@cpuguy83 cpuguy83 merged commit 6c12a82 into docker:master Nov 13, 2019
@thaJeztah thaJeztah deleted the carry_1221_push_quiet branch November 13, 2019 01:44
@nathanleclaire
Copy link
Contributor

yeet

@steadysupply
Copy link

I can see pull -q made it into 19.03. Is there somewhere I can see when this will be released?

@@ -66,5 +68,9 @@ func RunPush(dockerCli command.Cli, opts pushOptions) error {
}

defer responseBody.Close()
return jsonmessage.DisplayJSONMessagesToStream(responseBody, dockerCli.Out(), nil)
if !opts.quiet {
return jsonmessage.DisplayJSONMessagesToStream(responseBody, dockerCli.Out(), nil)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like actual push errors are produced here, so skipping this caused errors to not be printed, and docker push _always returning a zero-status exit code ("success") when using --quiet

See #2284

Mahoney added a commit to Mahoney-playground/goos that referenced this pull request Apr 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

docker push no progress/quiet docker push quiet option docker push should support --quiet flag docker push should support --quiet flag
8 participants
0