Add support for dynamic address in docker healthcheck (#5228)

This commit is contained in:
Arnaud de Mouhy 2017-11-24 09:41:26 +01:00 committed by Nitish Tiwari
parent 08e0698b7e
commit c9e00ae0a5
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ set -x
_init () {
scheme="http://"
address="127.0.0.1:9000"
address="$(netstat -nplt 2>/dev/null | awk ' /(.*\/minio)/ { gsub(":::","127.0.0.1:",$4); print $4}')"
resource="/minio/index.html"
start=$(stat -c "%Y" /proc/1)
}