Skip to main content

Inspect a container

GET 

/node/:hostname/container/docker/:id

Get detailed information about a specific container.

Request

Path Parameters

    hostname stringrequired

    Possible values: non-empty

    Target agent hostname, reserved routing value (_any, _all), or label selector (key:value).

    id stringrequired

    Possible values: non-empty, Value must match regular expression ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$

    Container identifier (name or ID). Must start with an alphanumeric character and may contain letters, digits, underscores, dots, and hyphens.

Responses

Container detail.

Schema

    job_id uuid

    The job ID used to process this request.

    results

    object[]

    required

  • Array [

  • hostname stringrequired

    The hostname of the agent.

    id string

    Container identifier.

    name string

    Container name.

    image string

    Image used by the container.

    state string

    Current container state.

    created string

    Container creation timestamp.

    ports string[]

    Port mappings.

    mounts string[]

    Volume mounts.

    env string[]

    Environment variables.

    network_settings

    object

    Network configuration.

    property name* string
    health string

    Health check status if configured.

    changed boolean

    Whether the operation modified system state.

    error string

    Error message if the agent failed.

  • ]

Loading...