Add x86_64 compatibility check

This commit is contained in:
Joseph Schorr 2015-02-06 12:22:27 -05:00
parent bbb127166a
commit 5f431e966e

View file

@ -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