why tf do we create docker clients in two locations...

This commit is contained in:
Jakob Schrettenbrunner 2020-09-26 04:22:29 +02:00
parent 6cbcfece8e
commit f79868ff6c

View File

@ -13,7 +13,7 @@ import (
// Configures the required network for the docker environment. // Configures the required network for the docker environment.
func ConfigureDocker(c *config.DockerConfiguration) error { func ConfigureDocker(c *config.DockerConfiguration) error {
// Ensure the required docker network exists on the system. // Ensure the required docker network exists on the system.
cli, err := client.NewClientWithOpts(client.FromEnv) cli, err := client.NewClientWithOpts(client.FromEnv, client.WithAPIVersionNegotiation())
if err != nil { if err != nil {
return err return err
} }