Apply context changes to the client.
Signed-off-by: David Calavera <david.calavera@gmail.com> Upstream-commit: fe53be4e1785ab4d8cadf246e5f2de419f337adc Component: engine
This commit is contained in:
@ -5,6 +5,8 @@ import (
|
||||
"io"
|
||||
"os"
|
||||
|
||||
"golang.org/x/net/context"
|
||||
|
||||
Cli "github.com/docker/docker/cli"
|
||||
"github.com/docker/docker/opts"
|
||||
"github.com/docker/docker/pkg/jsonmessage"
|
||||
@ -70,7 +72,7 @@ func (cli *DockerCli) CmdImport(args ...string) error {
|
||||
Changes: changes,
|
||||
}
|
||||
|
||||
responseBody, err := cli.client.ImageImport(options)
|
||||
responseBody, err := cli.client.ImageImport(context.Background(), options)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user