github.com/cookieai-jar/moby@v17.12.1-ce-rc2+incompatible/api/types/container/waitcondition.go (about) 1 package container 2 3 // WaitCondition is a type used to specify a container state for which 4 // to wait. 5 type WaitCondition string 6 7 // Possible WaitCondition Values. 8 // 9 // WaitConditionNotRunning (default) is used to wait for any of the non-running 10 // states: "created", "exited", "dead", "removing", or "removed". 11 // 12 // WaitConditionNextExit is used to wait for the next time the state changes 13 // to a non-running state. If the state is currently "created" or "exited", 14 // this would cause Wait() to block until either the container runs and exits 15 // or is removed. 16 // 17 // WaitConditionRemoved is used to wait for the container to be removed. 18 const ( 19 WaitConditionNotRunning WaitCondition = "not-running" 20 WaitConditionNextExit WaitCondition = "next-exit" 21 WaitConditionRemoved WaitCondition = "removed" 22 )