1
0
mirror of https://github.com/thib8956/nginx-proxy synced 2025-07-01 22:35:45 +00:00

Unit test - removed network creation

This commit is contained in:
Baptiste Donaux
2016-02-26 09:12:11 +01:00
parent 47631eb5de
commit b42cd85570
2 changed files with 2 additions and 20 deletions

View File

@ -8,22 +8,11 @@ function docker_clean {
sleep .25s
}
# Removes network $1
function docker_network_clean {
docker network rm $1 &>/dev/null ||:
sleep .25s
}
# get the ip of docker container $1
function docker_ip {
docker inspect --format '{{ .NetworkSettings.IPAddress }}' $1
}
# get the ip of docker container $1
function docker_ips {
docker inspect --format '{{ range .NetworkSettings.Networks }}{{ .IPAddress }}{{ end }}' $1
}
# get the running state of container $1
# → true/false
# fails if the container does not exist