mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-09-15 18:57:01 +00:00
fix #14: negotiate docker client version
This commit is contained in:
parent
f830665a46
commit
ca1182402b
3 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue