fix #14: negotiate docker client version
This commit is contained in:
parent
3cdc039201
commit
cbab149ff7
3 changed files with 3 additions and 0 deletions
|
@ -33,6 +33,7 @@ func NewDockerBuildExecutor(input NewDockerBuildExecutorInput) common.Executor {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
cli.NegotiateAPIVersion(input.Ctx)
|
||||
|
||||
input.Logger.Debugf("Building image from '%v'", input.ContextDir)
|
||||
|
||||
|
|
|
@ -31,6 +31,7 @@ func NewDockerPullExecutor(input NewDockerPullExecutorInput) common.Executor {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
cli.NegotiateAPIVersion(input.Ctx)
|
||||
|
||||
reader, err := cli.ImagePull(input.Ctx, imageRef, types.ImagePullOptions{})
|
||||
input.logDockerResponse(reader, err != nil)
|
||||
|
|
|
@ -41,6 +41,7 @@ func NewDockerRunExecutor(input NewDockerRunExecutorInput) common.Executor {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
cli.NegotiateAPIVersion(input.Ctx)
|
||||
|
||||
// check if container exists
|
||||
containerID, err := findContainer(input, cli, input.Name)
|
||||
|
|
Loading…
Reference in a new issue