sunetdrive/templates/multinode/get_containers

11 lines
192 B
Plaintext
Raw Permalink Normal View History

2023-02-13 09:44:56 +00:00
#!/bin/bash
type=${1}
if [[ -z ${type} ]]; then
type="nextcloud-custom"
fi
for container in $(docker ps | grep ${type} | awk '{print $NF}' | grep -E -v '^$'); do
echo "${container}"
done