Closed fenngwd closed 4 years ago
Hello @fenngwd, thank you for this PR. It looks like the DCO bot is complaining, could you signoff your commit? Also one integration test related to your changes is failing on the CI, can you reproduce it on your side?
@silvin-lubecki I have signoff my commit, and integration test passed. But it seems check hangs.
@silvin-lubecki How to solve this? Check hangs...
/brig run
Waiting container to stop is not working in old Docker API version(1.24).
In old Docker API version(1.24), before docker container started,
docker wait
will return immediately. In this case,ContainerWait
function which creates a goroutine to wait container to stop, may send a message tostatusc
before container started, and this will make waiting container to stop fail.Trying to wait container to stop after started container, and this will make waiting container work well.
Related source code: https://github.com/moby/moby/blob/1.12.x/container/state.go#L129