Alexander Belanger 6 年之前
父节点
当前提交
2878611187
共有 1 个文件被更改,包括 1 次插入 和 0 次删除
  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)