1
0
Fork 0

Auto-negotiate Docker API Version

This commit is contained in:
Felix Bünemann 2025-11-12 17:22:05 +01:00 committed by GitHub
parent d271750062
commit baba5da88b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 1 additions and 11 deletions

View file

@ -21,9 +21,6 @@ import (
"github.com/traefik/traefik/v3/pkg/safe"
)
// DockerAPIVersion is a constant holding the version of the Provider API traefik will use.
const DockerAPIVersion = "1.24"
const dockerName = "docker"
var _ provider.Provider = (*Provider)(nil)
@ -54,7 +51,6 @@ func (p *Provider) Init() error {
}
func (p *Provider) createClient(ctx context.Context) (*client.Client, error) {
p.ClientConfig.apiVersion = DockerAPIVersion
return createClient(ctx, p.ClientConfig)
}