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:
@ -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
|
||||
|
Reference in New Issue
Block a user