1
0
mirror of https://github.com/docker/docs.git synced 2026-10-31 10:34:26 +03:00
Files
docs/daemon/wait.go
2015-05-11 19:56:41 +02:00

13 lines
230 B
Go

package daemon
import "time"
func (daemon *Daemon) ContainerWait(name string, timeout time.Duration) (int, error) {
container, err := daemon.Get(name)
if err != nil {
return -1, err
}
return container.WaitStop(timeout)
}