Skip to content
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

Make image virtual size optional #331

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jalaziz
Copy link

@jalaziz jalaziz commented Oct 2, 2023

What did you implement:

Updated ImageInfo and ImageDetails to make virtual_size optional and ensure size is available.

The image VirtualSize is deprecated and Size is meant to be used as its replacement. In newer versions of the API, VirtualSize is dropped completely, causing image listing and inspection to fail due to deserialization failures.

Closes: #xxx

How did you verify your change:

What (if anything) would need to be called out in the CHANGELOG for the next release:

virtual_size on ImageInfo and ImageDetails is not optional and size should be used instead.

The image `VirtualSize` is deprecated and `Size` is meant to be used as
its replacement. In [newer versions of the API][1], `VirtualSize` is
dropped completely, causing image listing and inspection to fail due to
deserialization failures.

[1]: https://docs.docker.com/engine/api/version-history/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant