mirror of
https://github.com/minio/minio.git
synced 2025-04-09 06:00:12 -04:00
Add support for dynamic address in docker healthcheck (#5228)
This commit is contained in:
parent
08e0698b7e
commit
c9e00ae0a5
@ -19,7 +19,7 @@ set -x
|
|||||||
|
|
||||||
_init () {
|
_init () {
|
||||||
scheme="http://"
|
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"
|
resource="/minio/index.html"
|
||||||
start=$(stat -c "%Y" /proc/1)
|
start=$(stat -c "%Y" /proc/1)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user