You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
@milas I was thinking implementing a class called ContainerInfo with support for properties such as running, ports etc.
What do you recommend for required tests and documentation while implementing that?
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.
The text was updated successfully, but these errors were encountered: