diff --git a/provider/docker.go b/provider/docker.go index 630bfafe0..2ee072bc1 100644 --- a/provider/docker.go +++ b/provider/docker.go @@ -31,8 +31,6 @@ import ( ) const ( - // DockerAPIVersion is a constant holding the version of the Docker API traefik will use - DockerAPIVersion string = "1.21" // SwarmAPIVersion is a constant holding the version of the Docker API traefik will use SwarmAPIVersion string = "1.24" // SwarmDefaultWatchTime is the duration of the interval when polling docker diff --git a/provider/docker_unix.go b/provider/docker_unix.go new file mode 100644 index 000000000..8f901f7b4 --- /dev/null +++ b/provider/docker_unix.go @@ -0,0 +1,8 @@ +// +build !windows + +package provider + +const ( + // DockerAPIVersion is a constant holding the version of the Docker API traefik will use + DockerAPIVersion string = "1.21" +) diff --git a/provider/docker_windows.go b/provider/docker_windows.go new file mode 100644 index 000000000..dc351fc2a --- /dev/null +++ b/provider/docker_windows.go @@ -0,0 +1,6 @@ +package provider + +const ( + // DockerAPIVersion is a constant holding the version of the Docker API traefik will use + DockerAPIVersion string = "1.24" +)