mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2025-10-28 04:35:40 +00:00
fix: allow docker api negotiation
This commit is contained in:
@@ -29,8 +29,13 @@ func (docker *Docker) Init() error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the context and api client
|
// Create the context
|
||||||
docker.Context = context.Background()
|
docker.Context = context.Background()
|
||||||
|
|
||||||
|
// Negotiate API version
|
||||||
|
client.NegotiateAPIVersion(docker.Context)
|
||||||
|
|
||||||
|
// Set client
|
||||||
docker.Client = client
|
docker.Client = client
|
||||||
|
|
||||||
// Done
|
// Done
|
||||||
|
|||||||
Reference in New Issue
Block a user