4196: arv-keepdocker uses Docker 1.0 pull syntax.
authorBrett Smith <brett@curoverse.com>
Wed, 15 Oct 2014 13:22:40 +0000 (09:22 -0400)
committerTom Clegg <tom@curoverse.com>
Wed, 15 Oct 2014 17:53:36 +0000 (13:53 -0400)
`docker pull -t` was the old way of pulling an image with a specific
tag.  Docker 1.0 introduced `docker pull repo:tag`, and Docker 1.2
removes support for `-t` completely.  We're well-standardized on 1.1+
at this point, and considering an upgrade to 1.2+, so now's the time
to switch.

Closes #4196.

sdk/python/arvados/commands/keepdocker.py

index c0913747108d24ea679a75451b73dcf78d642604..6fa17453dd357da3ed91b3ee4f0240989eda96b7 100644 (file)
@@ -116,7 +116,8 @@ def stat_cache_name(image_file):
     return getattr(image_file, 'name', image_file) + '.stat'
 
 def pull_image(image_name, image_tag):
-    check_docker(popen_docker(['pull', '-t', image_tag, image_name]), "pull")
+    check_docker(popen_docker(['pull', '{}:{}'.format(image_name, image_tag)]),
+                 "pull")
 
 def save_image(image_hash, image_file):
     # Save the specified Docker image to image_file, then try to save its