fix: docker service name.
This commit is contained in:
parent
29efac3e5e
commit
c8fa059064
3 changed files with 8 additions and 3 deletions
|
@ -142,7 +142,12 @@ func (p *Provider) createClient() (client.APIClient, error) {
|
|||
apiVersion = SwarmAPIVersion
|
||||
}
|
||||
|
||||
return client.NewClient(p.Endpoint, apiVersion, httpClient, httpHeaders)
|
||||
return client.NewClientWithOpts(
|
||||
client.WithHost(p.Endpoint),
|
||||
client.WithVersion(apiVersion),
|
||||
client.WithHTTPClient(httpClient),
|
||||
client.WithHTTPHeaders(httpHeaders),
|
||||
)
|
||||
}
|
||||
|
||||
// Provide allows the docker provider to provide configurations to traefik using the given configuration channel.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue