mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05: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 () {
|
||||
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…
Reference in New Issue
Block a user