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

master
Arnaud de Mouhy 7 years ago committed by Nitish Tiwari
parent 08e0698b7e
commit c9e00ae0a5
  1. 2
      dockerscripts/healthcheck.sh

@ -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)
}

Loading…
Cancel
Save