enable client version negotiation for docker env (#61)

* enable client version negotiation for docker env

* derp

* another try
This commit is contained in:
Jakob 2020-09-26 04:19:27 +02:00 committed by GitHub
parent 7646c27c5a
commit 6cbcfece8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,7 +55,7 @@ type Environment struct {
// reference the container from here on out. This should be unique per-server (we use the UUID
// by default). The container does not need to exist at this point.
func New(id string, m *Metadata, c *environment.Configuration) (*Environment, error) {
cli, err := client.NewClientWithOpts(client.FromEnv)
cli, err := client.NewClientWithOpts(client.FromEnv, client.WithAPIVersionNegotiation())
if err != nil {
return nil, err
}