Bläddra i källkod

context.Context should be the first parameter of a function

Signed-off-by: yupeng <yu.peng36@zte.com.cn>
yupeng 8 år sedan
förälder
incheckning
4b86bd050b
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      cli/command/container/start.go

+ 2 - 2
cli/command/container/start.go

@@ -155,13 +155,13 @@ func runStart(dockerCli *command.DockerCli, opts *startOptions) error {
 	} else {
 	} else {
 		// We're not going to attach to anything.
 		// We're not going to attach to anything.
 		// Start as many containers as we want.
 		// Start as many containers as we want.
-		return startContainersWithoutAttachments(dockerCli, ctx, opts.containers)
+		return startContainersWithoutAttachments(ctx, dockerCli, opts.containers)
 	}
 	}
 
 
 	return nil
 	return nil
 }
 }
 
 
-func startContainersWithoutAttachments(dockerCli *command.DockerCli, ctx context.Context, containers []string) error {
+func startContainersWithoutAttachments(ctx context.Context, dockerCli *command.DockerCli, containers []string) error {
 	var failedContainers []string
 	var failedContainers []string
 	for _, container := range containers {
 	for _, container := range containers {
 		if err := dockerCli.Client().ContainerStart(ctx, container, types.ContainerStartOptions{}); err != nil {
 		if err := dockerCli.Client().ContainerStart(ctx, container, types.ContainerStartOptions{}); err != nil {