From 434596b10318f89727712b53e71cff5c678b7101 Mon Sep 17 00:00:00 2001 From: Stefan Scherer Date: Sat, 4 Feb 2017 13:59:32 +0100 Subject: [PATCH] Fix Docker API version for Windows Signed-off-by: Stefan Scherer --- provider/docker.go | 2 -- provider/docker_unix.go | 8 ++++++++ provider/docker_windows.go | 6 ++++++ 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 provider/docker_unix.go create mode 100644 provider/docker_windows.go 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" +)