Signed-off-by: yupeng <yu.peng36@zte.com.cn>
| ... | ... |
@@ -155,13 +155,13 @@ func runStart(dockerCli *command.DockerCli, opts *startOptions) error {
|
| 155 | 155 |
} else {
|
| 156 | 156 |
// We're not going to attach to anything. |
| 157 | 157 |
// Start as many containers as we want. |
| 158 |
- return startContainersWithoutAttachments(dockerCli, ctx, opts.containers) |
|
| 158 |
+ return startContainersWithoutAttachments(ctx, dockerCli, opts.containers) |
|
| 159 | 159 |
} |
| 160 | 160 |
|
| 161 | 161 |
return nil |
| 162 | 162 |
} |
| 163 | 163 |
|
| 164 |
-func startContainersWithoutAttachments(dockerCli *command.DockerCli, ctx context.Context, containers []string) error {
|
|
| 164 |
+func startContainersWithoutAttachments(ctx context.Context, dockerCli *command.DockerCli, containers []string) error {
|
|
| 165 | 165 |
var failedContainers []string |
| 166 | 166 |
for _, container := range containers {
|
| 167 | 167 |
if err := dockerCli.Client().ContainerStart(ctx, container, types.ContainerStartOptions{}); err != nil {
|