Browse Source

new: adding function ``get_running_containers_for_service``.

raw-remaining-args
Valentin Lab 6 years ago
parent
commit
85561d3e19
  1. 7
      bin/compose

7
bin/compose

@ -681,6 +681,13 @@ EOF
export -f docker_add_host_declaration
get_running_containers_for_service() {
local service="$1"
docker ps --filter label="compose.service=$service" --format="{{.ID}}"
}
export -f get_running_containers_for_service
##
## Internal Process

Loading…
Cancel
Save