fix docker client version conflicts
This commit is contained in:
parent
b3a6550ac2
commit
99849a489b
@ -83,7 +83,7 @@ func NewContainer(containerClientApi ContainerClient) *Container {
|
|||||||
var apiClient ContainerClient = containerClientApi
|
var apiClient ContainerClient = containerClientApi
|
||||||
if apiClient == nil {
|
if apiClient == nil {
|
||||||
var err error
|
var err error
|
||||||
apiClient, err = client.NewClientWithOpts(client.FromEnv)
|
apiClient, err = client.NewClientWithOpts(client.FromEnv, client.WithAPIVersionNegotiation())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user