From 612c5bbb7babe41b463297576710d60ee6188dee Mon Sep 17 00:00:00 2001 From: Radostin Stoyanov Date: Thu, 13 Apr 2017 15:06:34 +0100 Subject: Fix error: `subprocess.CalledProcessError: Command Fix the following failing skopeo call: 'skopeo copy docker://ubuntu:latest/ dir://tmp/tmpyFFP9Wvirt-bootstrap' The function `tempfile.mkdtemp()` returns full path and do not need additional slash at the beginning. Thus the destination path is incorrect. `dir://tmp/tmpyFFP9Wvirt-bootstrap` -----^ it should be: `dir:/tmp/tmpyFFP9Wvirt-bootstrap` -----^ --- sources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sources.py') diff --git a/sources.py b/sources.py index 4e98610..7045a29 100644 --- a/sources.py +++ b/sources.py @@ -68,7 +68,7 @@ class DockerSource: # folders for broader enablement cmd = ["skopeo", "copy", "docker://%s/%s" % (self.registry, self.image), - "dir:/%s" % tmpDest] + "dir:%s" % tmpDest] if self.insecure: cmd.append('--src-tls-verify=false') if self.username: -- cgit