-
Notifications
You must be signed in to change notification settings - Fork 18.8k
docker push should support --quiet flag #36655
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
Comments
A Meanwhile, to suppress the progress bars, the same trick as for
@nathanleclaire could you perhaps reopen this in the docker/cli issue tracker (https://github.com/docker/cli/issues), because that's where the change will have to be made |
Sure! |
Wouldn't that swallow errors? |
For easier discovery; this was implemented in docker/cli#2197, and will be in the next release of docker (no ETA yet, but the release after 19.03) @BarakBD-Globality Hm.. yes, it should still print errors, but looks like there's a bug/oversight there: Without $ docker push nosuchimage
The push refers to repository [docker.io/library/nosuchimage]
An image does not exist locally with the tag: nosuchimage
echo $?
1
$ docker push busybox
The push refers to repository [docker.io/library/busybox]
195be5f8be1d: Layer already exists
[DEPRECATION NOTICE] registry v2 schema1 support will be removed in an upcoming release. Please contact admins of the docker.io registry NOW to avoid future disruption. More information at https://docs.docker.com/registry/spec/deprecated-schema-v1/
errors:
denied: requested access to the resource is denied
unauthorized: authentication required
echo $?
1 With $ docker push --quiet nosuchimage
docker.io/library/nosuchimage
$ echo $?
0
$ docker push --quiet busybox
docker.io/library/busybox
$ echo $?
0 I'll open a bug-report in docker/cli and post the link here |
Opened docker/cli#2284 |
Uh oh!
There was an error while loading. Please reload this page.
I'm on latest Docker for Mac. It would be quite nice if
docker push
had a quiet mode, similar to howcurl
has-q
to avoid showing the download-in-progress animations. I like the push output for working directly withdocker
but not for shell scripts.The text was updated successfully, but these errors were encountered: