-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Bug or Misleading Docu: All docker images will be downloaded when the image tag is not specified #2545
Comments
defaulting to Usage: docker pull [OPTIONS] NAME[:TAG|@DIGEST]
Pull an image or a repository from a registry
Options:
-a, --all-tags Download all tagged images in the repository
--disable-content-trust Skip image verification (default true)
--platform string Set platform if server is multi-platform capable
-q, --quiet Suppress verbose output |
Thanks for the response, this default behavior would improve the usability a lot. |
I'm not sure if maintainers will get to making this change soon, but contributions are welcome if you're interested in making those changes |
Versions below 4.4.0 have an issue here the library pulls all tags of an image: docker/docker-py#2545
BUG
Setup: Python3.8: docker 4.2.0
When starting a clean postgres container using python docker sdk the docker sdk pulls all postgres images.
It would be helpful to update the docu mentioning that the version tag should be specified.
Or even more handy, introduce a default to the latest version?
Here is the code:
Bash output of 'docker images' before running the code:
Bash output of 'docker images' after running the code:
The text was updated successfully, but these errors were encountered: