Skip to content

Commit

Permalink
chore: add warning message for native docker
Browse files Browse the repository at this point in the history
  • Loading branch information
aweris committed Dec 15, 2023
1 parent f973da9 commit 5eb971c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ func (r *Runner) Container(runID string) (*RunnerContainer, error) {
ctr = ctr.WithEnvVariable("DOCKER_HOST", "unix:///var/run/docker.sock")
case strings.HasPrefix(r.RunnerOpts.DockerHost, "tcp://"):
ctr = ctr.WithEnvVariable("DOCKER_HOST", r.RunnerOpts.DockerHost)
default:
return nil, fmt.Errorf("unsupported docker host: %s", r.RunnerOpts.DockerHost)
}
}

Expand Down

0 comments on commit 5eb971c

Please sign in to comment.