turbot/docker

steampipe plugin install dockersteampipe plugin install docker

Table: docker_container

List containers from the docker engine.

Examples

List all containers

select
*
from
docker_container

List running containers

select
id,
names
from
docker_container
where
state = 'running'

Find a container by name

select
*
from
docker_container
where
names ? '/practical_austin'

.inspect docker_container

List all containers from the Docker engine.

NameTypeDescription
commandtextMain command running in the container.
createdtimestamp without time zoneTime when the container was created.
host_configjsonbHost configuration for the container.
idtextID of the container.
imagetextName of the image for the container.
image_idtextID of the image for the container.
labelsjsonbLabels for the container.
mountsjsonbVolume mounts for the container.
namesjsonbNames assigned to the container.
network_settingsjsonbNetwork settings for the container.
portsjsonbPorts open for the container.
size_root_fsbigint
size_rwbigint
statetextState of the container: running, restarting, etc.
statustextStatus message from the container.