Don't use docker exec -w because CircleCI doesn't support it

This commit is contained in:
Joe Rickerby
2020-06-24 17:12:06 +01:00
parent a052c71aec
commit 850d109582
+1 -1
View File
@@ -92,7 +92,7 @@ class DockerContainer:
to_path.mkdir(parents=True, exist_ok=True)
subprocess.run(
f'docker exec -i -w {from_path} {self.container_name} tar cf - . | tar -xf -',
f'docker exec -i {self.container_name} tar -cC {from_path} -f - . | tar -xf -',
shell=True,
check=True,
cwd=to_path