How to create a container

Health

qianmoQqianmoQ· 更新于 2026-10-14· 阅读 1 分钟· 0 次阅读

登录后可跨设备保存划线和私人笔记登录

Health Wait strategy

The health wait strategy will check that the container is in the healthy state and allows to set the following conditions:

  • the startup timeout to be used in seconds, default is 60 seconds.
  • the poll interval to be used in milliseconds, default is 100 milliseconds.
req := ContainerRequest{
    Image:      "alpine:latest",
    WaitingFor: wait.ForHealthCheck(),
}

评论

登录后参与评论

正在加载评论…