mirror of https://github.com/docker/docs.git
integration: ps --filter: wait for exited to containers to actual exit.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
parent
64ae9eef9b
commit
0556ad6d54
|
@ -53,8 +53,11 @@ function teardown() {
|
|||
firstID=$(docker_swarm run -d --name name1 --label "match=me" --label "second=tag" busybox sleep 10000)
|
||||
# Exited - successfull
|
||||
secondID=$(docker_swarm run -d --name name2 --label "match=me too" busybox true)
|
||||
docker_swarm wait "$secondID"
|
||||
# Exited - error
|
||||
thirdID=$(docker_swarm run -d --name name3 --label "nomatch=me" busybox false)
|
||||
docker_swarm wait "$thirdID"
|
||||
# Exited - error
|
||||
|
||||
# status
|
||||
run docker_swarm ps -q --no-trunc --filter=status=exited
|
||||
|
|
Loading…
Reference in New Issue