Skip to content

[Feature Request] A class for docker's inspect information #3087

Open
@akhildevelops

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.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions