3826: Merge branch 'master' into 3826-crunchstat-netstats
[arvados.git] / sdk / python / arvados / commands / keepdocker.py
index c0913747108d24ea679a75451b73dcf78d642604..c36da3b36010d9c1a5de4848a23f5713f04feee9 100644 (file)
@@ -9,6 +9,7 @@ import subprocess
 import sys
 import tarfile
 import tempfile
+import _strptime
 
 from collections import namedtuple
 from stat import *
@@ -116,7 +117,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