mirror of
https://github.com/docker/docs.git
synced 2026-04-12 06:19:22 +07:00
Update api/client file to use context
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
@@ -5,6 +5,8 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
"golang.org/x/net/context"
|
||||
|
||||
Cli "github.com/docker/docker/cli"
|
||||
"github.com/docker/docker/opts"
|
||||
flag "github.com/docker/docker/pkg/mflag"
|
||||
@@ -73,7 +75,7 @@ func (cli *DockerCli) CmdCommit(args ...string) error {
|
||||
Config: config,
|
||||
}
|
||||
|
||||
response, err := cli.client.ContainerCommit(options)
|
||||
response, err := cli.client.ContainerCommit(context.Background(), options)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user