Page MenuHomeDevCentral

Monitor a container is up
Open, NormalPublic

Description

List of the actual containers on a Docker engine:
docker ps | awk '(NR>1) {print $NF}'

List of the expected containers on a Docker engine:

[key
 for service, containers in pillar["docker_containers"]["docker-001"].items()
 for key in containers.keys()
]`