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
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ function cleanup {
### operate docker containers
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
if [ "$1" = "stop" ]; then