How to create a container

Exit

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

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

Exit Wait strategy

The exit wait strategy will check that the container is not in the running state, and allows to set the following conditions:

  • the exit timeout in seconds, default is 0.
  • the poll interval to be used in milliseconds, default is 100 milliseconds.

Match an exit code

req := ContainerRequest{
    Image:      "alpine:latest",
    WaitingFor: wait.ForExit(),
}

评论

登录后参与评论

正在加载评论…