diff --git a/src/LayerCache.ts b/src/LayerCache.ts index e01d7fe3..fe9b0ed0 100644 --- a/src/LayerCache.ts +++ b/src/LayerCache.ts @@ -144,7 +144,7 @@ class LayerCache { } private async loadImageFromUnpacked() { - await exec.exec(`sh -c`, [`tar cf - '${this.getUnpackedTarDir()}' | docker load`]) + await exec.exec(`sh -c`, [`tar cf - . | docker load`], { cwd: this.getUnpackedTarDir() }) } async cleanUp() {