enable client version negotiation for docker env (#61)
* enable client version negotiation for docker env * derp * another try
This commit is contained in:
parent
7646c27c5a
commit
6cbcfece8e
|
@ -55,7 +55,7 @@ type Environment struct {
|
||||||
// reference the container from here on out. This should be unique per-server (we use the UUID
|
// 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.
|
// by default). The container does not need to exist at this point.
|
||||||
func New(id string, m *Metadata, c *environment.Configuration) (*Environment, error) {
|
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 {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user