diff options
author | Radostin Stoyanov <rstoyanov1@gmail.com> | 2017-04-13 15:06:34 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cbosdonnat@suse.com> | 2017-04-14 10:33:03 +0200 |
commit | 612c5bbb7babe41b463297576710d60ee6188dee (patch) | |
tree | 4b7ffe7ddcf38915f20e3b615019c6e0770dc65c /sources.py | |
parent | 87fc188d5a210b406355d159ea3e84f90ff8cb38 (diff) | |
download | virt-bootstrap.git-612c5bbb7babe41b463297576710d60ee6188dee.tar.gz virt-bootstrap.git-612c5bbb7babe41b463297576710d60ee6188dee.tar.xz virt-bootstrap.git-612c5bbb7babe41b463297576710d60ee6188dee.zip |
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`
-----^
Diffstat (limited to 'sources.py')
-rw-r--r-- | sources.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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: |