Alexander Belanger vor 6 Jahren
Ursprung
Commit
2878611187
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  1. 1 0
      cli/cmd/docker/agent.go

+ 1 - 0
cli/cmd/docker/agent.go

@@ -168,6 +168,7 @@ func (a *Agent) PullImage(image string) error {
 	return nil
 }
 
+// WaitForContainerStop waits until a container has stopped to exit
 func (a *Agent) WaitForContainerStop(id string) error {
 	// wait for container to stop before exit
 	statusCh, errCh := a.client.ContainerWait(a.ctx, id, container.WaitConditionNotRunning)