Skip to content

ContainerInspectParameters.IncludeSize is defined but never used #694

Description

@mt-akar

Problem

I am trying to get the disk usage size of a container using docker inspect. InspectContainerAsync call returns a ContainerInspectResponse object that contains SizeRw and SizeRootFs fields. However, these always return null.

This should have a simple solution where we pass a ContainerInspectParameters with IncludeSize property to InspectContainerAsync to tell the SDK to populate those values. However, inspect operations do not accept any parameters object. This results in an inability to specify the IncludeSize flag while inspecting containers. ContainerInspectParameters very much feels like it is designed for this purpose, but it is never used. More interestingly, in the ContainerOperations, almost all operations take a parameters object, except the inspect operations.

Oversight

I believe there is an oversight in the implementation of this SDK in this regard. Could you please look at this?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions