1 line
256 B
Bash
1 line
256 B
Bash
docker ps --format "{{.Names}}" | while read c; do labels=$(docker inspect $c --format "{{json .Config.Labels}}"); if echo "$labels" | grep -iq "gohorsejobs"; then echo "Container: $c"; echo "$labels" | grep -io "\"traefik.http.routers.[^\"]*\""; fi; done
|