1
0
Fork 0
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:
Casey Lee 2019-01-21 06:31:40 -08:00
parent f830665a46
commit ca1182402b
3 changed files with 3 additions and 0 deletions

View file

@ -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)