diff --git a/daemon/container.go b/daemon/container.go index 9ca94b2b56..a2dc5977a5 100644 --- a/daemon/container.go +++ b/daemon/container.go @@ -652,7 +652,7 @@ func (container *Container) Export() (archive.Archive, error) { } func (container *Container) WaitTimeout(timeout time.Duration) error { - done := make(chan bool) + done := make(chan bool, 1) go func() { container.Wait() done <- true