[Feature Request] A class for docker's inspect information #3087
Open
Description
Hi 👋,
Information returned by docker inspect should have it's own object type, rather than a simple dict object.
This behavior will be helpful in accessing attributes and apply methods on the data.
Currently insepct_container method returns a plain dict.
inspect_container(container)
Identical to the docker inspect command, but only for containers.
Parameters
container (str) – The container to inspect
Returns
Similar to the output of docker inspect, but as a single dict
Return type
(dict)
Raises
docker.errors.APIError – If the server returns an error.