Skip to content

Commit

Permalink
add 'all' switch to docker ps
Browse files Browse the repository at this point in the history
  • Loading branch information
asifbacchus committed Mar 6, 2020
1 parent a26bb36 commit 04bc748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion root/scripts/backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 04bc748

Please sign in to comment.