github.com/torfuzx/docker@v1.8.1/daemon/wait.go (about) 1 package daemon 2 3 import "time" 4 5 func (daemon *Daemon) ContainerWait(name string, timeout time.Duration) (int, error) { 6 container, err := daemon.Get(name) 7 if err != nil { 8 return -1, err 9 } 10 11 return container.WaitStop(timeout) 12 }