The DockerHostMA:getContainerInfo Method

The DockerHostMA:getContainerInfo method returns information about the container that matches the given ContainerName.

Type

Synchronous, IMPACT_INFO

Arguments

Name Type Description
ContainerName String The name of the Docker container. If not specified, the method returns information for all running containers.

Returns

Name Type Description
ContainerId String The ID of the Docker container
ContainerName String The name of the Docker container
ImageId String The ID of the Docker container image.
Image String Name of the Docker container image.
Ports String Container ports as a string.
Command String Container command
State String Container state
Status String Container status
HostnamePath String Container hostname path
Hostpath String Container hostpath
LogPath String Container log path
RestartCount Long Number of times the Docker container is restarted.
IsRunning Boolean Is container running
IsPaused Boolean Is container paused
IsOOMKilled Boolean Is container killed due to Out-of memory (OOM) error
IsRestarting Boolean Is container restarting
StartedAt String Time at which the Docker container started.
FinishedAt String Time at which the Docker container finished running.