mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
context.Context should be the first parameter of a function
Signed-off-by: yupeng <yu.peng36@zte.com.cn>
This commit is contained in:
parent
69efb4652c
commit
4b86bd050b
1 changed files with 2 additions and 2 deletions
|
@ -155,13 +155,13 @@ func runStart(dockerCli *command.DockerCli, opts *startOptions) error {
|
|||
} else {
|
||||
// We're not going to attach to anything.
|
||||
// Start as many containers as we want.
|
||||
return startContainersWithoutAttachments(dockerCli, ctx, opts.containers)
|
||||
return startContainersWithoutAttachments(ctx, dockerCli, opts.containers)
|
||||
}
|
||||
|
||||
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
|
||||
for _, container := range containers {
|
||||
if err := dockerCli.Client().ContainerStart(ctx, container, types.ContainerStartOptions{}); err != nil {
|
||||
|
|
Loading…
Reference in a new issue