add 'all' switch to docker ps
This commit is contained in:
parent
a26bb36f17
commit
04bc748816
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user