From 5f431e966ee05583651c31f3b0594d1e6e03c788 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Fri, 6 Feb 2015 12:22:27 -0500 Subject: [PATCH] Add x86_64 compatibility check --- endpoints/verbs.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/endpoints/verbs.py b/endpoints/verbs.py index 091af8841..38cea8ff2 100644 --- a/endpoints/verbs.py +++ b/endpoints/verbs.py @@ -247,6 +247,12 @@ def os_arch_checker(os, arch): return False architecture = image_json.get('architecture', 'amd64') + + # Note: Some older Docker images have 'x86_64' rather than 'amd64'. + # We allow the conversion here. + if architecture == 'x86_64' and operating_system == 'linux': + architecture = 'amd64' + if architecture != arch: return False