We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Image.history()
At the document, image.history() return str type, but it return list type.
str
list
The text was updated successfully, but these errors were encountered:
Yes, as mentioned in docs here, it should return str but it returns the history as list object
history
history() Show the history of an image. Returns: The history of the image. Return type: (str) Raises: docker.errors.APIError – If the server returns an error.
history() Show the history of an image.
Returns: The history of the image.
Return type: (str)
Raises: docker.errors.APIError – If the server returns an error.
For examples:
Basic alpine image return below history as list
[{'Comment': '', 'Created': 1701999570, 'CreatedBy': '/bin/sh -c #(nop) CMD ["/bin/sh"]', 'Id': 'sha256:<SHA>', 'Size': 0, 'Tags': ['alpine:latest']}, {'Comment': '', 'Created': 1701999570, 'CreatedBy': '/bin/sh -c #(nop) ADD file:<file> in / ', 'Id': '<missing>', 'Size': 7728526, 'Tags': None}]
Sorry, something went wrong.
docs: change image.history() return type to list (docker#3076)
94a7f3e
Signed-off-by: Khushiyant <khushiyant2002@gmail.com>
docs: change image.history() return type to list (#3202)
eeb9ea1
Fixes #3076. Signed-off-by: Khushiyant <khushiyant2002@gmail.com>
Successfully merging a pull request may close this issue.
At the document, image.history() return
str
type, but it returnlist
type.The text was updated successfully, but these errors were encountered: