add 'all' switch to docker ps

This commit is contained in:
Asif Bacchus 2020-03-06 00:43:04 -07:00
parent a26bb36f17
commit 04bc748816

View File

@ -225,7 +225,7 @@ function cleanup {
### operate docker containers ### operate docker containers
function operateDocker { function operateDocker {
containerName="$(docker ps --format '{{ .Names }}' --filter name=${COMPOSE_PROJECT_NAME}_${2}-mailcow_1)" containerName="$(docker ps -a --format '{{ .Names }}' --filter name=${COMPOSE_PROJECT_NAME}_${2}-mailcow_1)"
# determine action to take # determine action to take
if [ "$1" = "stop" ]; then if [ "$1" = "stop" ]; then