docker healthcheck 健康监测

Posted on Posted in docker
文章目录[隐藏]

docker healthcheck

  • interval=DURATION (default: 30s) 检查间隔时间
  • timeout=DURATION (default: 30s) 超时时间
  • start-period=DURATION (default: 0s) 应用的启动的初始化时间,在启动过程中的健康检查失效不会计入
  • retries=N (default: 3) 重试次数
healthcheck:
    test: ["cmd", "curl", "http://localhost"]
    interval: 70s
    timeout: 10s
    retries: 3
    start_period: 40s
» 转载请注明来源:呢喃 » docker healthcheck 健康监测

Leave a Reply

Your email address will not be published. Required fields are marked *

3 × five =