Skip to content
New issue

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

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

Already on GitHub? # to your account

Add support for docker push --quiet #2197

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

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.

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
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
8 participants