-
Notifications
You must be signed in to change notification settings - Fork 400
Description
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?