From e84a303543e19157372dbf31853e29a9c1257491 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Mon, 14 Mar 2016 09:30:45 -0700 Subject: [PATCH] Add explicit code to handle older versions of Docker, too Signed-off-by: Andrew "Tianon" Page --- hack/make/.detect-daemon-osarch | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hack/make/.detect-daemon-osarch b/hack/make/.detect-daemon-osarch index 9a512675ef..571e802eb9 100644 --- a/hack/make/.detect-daemon-osarch +++ b/hack/make/.detect-daemon-osarch @@ -12,6 +12,9 @@ docker-version-osarch() { $1 ~ /^(Client|Server):$/ { section = 0 } $1 == "'"$target"':" { section = 1; next } section && $1 == "OS/Arch:" { print $2 } + + # old versions of Docker + $1 == "OS/Arch" && $2 == "('"${target,,}"'):" { print $3 } ' }