Fix abra run
if there are 2 containers up
This commit is contained in:
parent
3c7c7694bf
commit
b7757b51b1
2
abra
2
abra
@ -250,7 +250,7 @@ sub_run(){
|
||||
fi
|
||||
|
||||
CONTAINER=$(docker container ls --format "table {{.ID}},{{.Names}}" \
|
||||
| grep "${STACK_NAME}_${SERVICE}" | cut -d',' -f1)
|
||||
| grep "${STACK_NAME}_${SERVICE}" | head -n1 | cut -d',' -f1)
|
||||
|
||||
if [ -z "$CONTAINER" ]; then
|
||||
error "Can't find a container for ${STACK_NAME}_${SERVICE}"
|
||||
|
Reference in New Issue
Block a user