ContainerState

constructor(status: ContainerState.Status? = null, running: Boolean? = null, paused: Boolean? = null, restarting: Boolean? = null, ooMKilled: Boolean? = null, dead: Boolean? = null, pid: Int? = null, exitCode: Int? = null, error: String? = null, startedAt: String? = null, finishedAt: String? = null, health: Health? = null)

Parameters

status

String representation of the container state. Can be one of \"created\", \"running\", \"paused\", \"restarting\", \"removing\", \"exited\", or \"dead\".

running

Whether this container is running. Note that a running container can be paused. The Running and Paused booleans are not mutually exclusive: When pausing a container (on Linux), the freezer cgroup is used to suspend all processes in the container. Freezing the process requires the process to be running. As a result, paused containers are both Running and Paused. Use the Status field instead to determine if a container's state is \"running\".

paused

Whether this container is paused.

restarting

Whether this container is restarting.

ooMKilled

Whether a process within this container has been killed because it ran out of memory since the container was last started.

dead
pid

The process ID of this container

exitCode

The last exit code of this container

error
startedAt

The time when this container was last started.

finishedAt

The time when this container last exited.

health