From 6b7f12650d8333bf088271acecea5256aef99c41 Mon Sep 17 00:00:00 2001 From: Vincent Demeester Date: Thu, 2 Jun 2016 16:56:13 +0200 Subject: [PATCH] Update ContainerStart calls to use options now Signed-off-by: Vincent Demeester --- api/client/run.go | 2 +- api/client/start.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/client/run.go b/api/client/run.go index 79d52d96a9..2c322e0865 100644 --- a/api/client/run.go +++ b/api/client/run.go @@ -234,7 +234,7 @@ func (cli *DockerCli) CmdRun(args ...string) error { } //start the container - if err := cli.client.ContainerStart(ctx, createResponse.ID, ""); err != nil { + if err := cli.client.ContainerStart(ctx, createResponse.ID, types.ContainerStartOptions{}); err != nil { // If we have holdHijackedConnection, we should notify // holdHijackedConnection we are going to exit and wait // to avoid the terminal are not restored. diff --git a/api/client/start.go b/api/client/start.go index 03f53ed89e..2625f75025 100644 --- a/api/client/start.go +++ b/api/client/start.go @@ -113,7 +113,7 @@ func (cli *DockerCli) CmdStart(args ...string) error { }) // 3. Start the container. - if err := cli.client.ContainerStart(ctx, container, ""); err != nil { + if err := cli.client.ContainerStart(ctx, container, types.ContainerStartOptions{}); err != nil { cancelFun() <-cErr return err @@ -147,7 +147,7 @@ func (cli *DockerCli) CmdStart(args ...string) error { func (cli *DockerCli) startContainersWithoutAttachments(ctx context.Context, containers []string) error { var failedContainers []string for _, container := range containers { - if err := cli.client.ContainerStart(ctx, container, ""); err != nil { + if err := cli.client.ContainerStart(ctx, container, types.ContainerStartOptions{}); err != nil { fmt.Fprintf(cli.err, "%s\n", err) failedContainers = append(failedContainers, container) } else {