forked from Ivasoft/traefik
fix: docker service name.
This commit is contained in:
committed by
Traefiker Bot
parent
29efac3e5e
commit
c8fa059064
@@ -331,5 +331,5 @@ func getServiceName(container dockerData) string {
|
||||
serviceName = values[labelDockerComposeService] + "_" + values[labelDockerComposeProject]
|
||||
}
|
||||
|
||||
return serviceName
|
||||
return provider.Normalize(serviceName)
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user