adjusting networks for certbot so that we can talk to the right containers

This commit is contained in:
2020-06-06 15:18:26 -04:00
parent 4439ae493d
commit 68296c8e92
11 changed files with 82 additions and 33 deletions

View File

@@ -6,7 +6,8 @@ export DOCKER_HOST=${DOCKER_HOST:-'dkhost:2376'}
#container=$(docker service ps -q --filter "desired-state=Running" sslproxy_app | head -n 1)
inspect_service() {
docker service ps --filter "desired-state=Running" sslproxy_app
# docker service ps --filter "desired-state=Running" sslproxy_app
docker service inspect sslproxy_app
}
inspect_stack() {
@@ -17,10 +18,16 @@ inspect_containers() {
docker ps -n2
}
inspect_network() {
docker $@
}
if [ "$1" == "service" ]; then
inspect_service
elif [ "$1" == "stack" ]; then
inspect_stack
elif [ "$1" == "network" ]; then
inspect_network $@
else
inspect_containers
fi