You've already forked docker-mailserver
mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-08 23:06:49 +02:00
Return only one result, if there are multiple matches
Among other things, this is the case, when running tests with multiple containers.
This commit is contained in:
2
setup.sh
2
setup.sh
@ -25,7 +25,7 @@ if [ -z "$CRI" ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
INFO=$($CRI ps --no-trunc --format "{{.Image}};{{.Names}}" --filter label=org.label-schema.name="docker-mailserver")
|
||||
INFO=$($CRI ps --no-trunc --format "{{.Image}};{{.Names}}" --filter label=org.label-schema.name="docker-mailserver" | tail -1)
|
||||
|
||||
IMAGE_NAME=${INFO%;*}
|
||||
CONTAINER_NAME=${INFO#*;}
|
||||
|
Reference in New Issue
Block a user