From 031ee1ef8faecbb7ef195de12fcdeb24253573d9 Mon Sep 17 00:00:00 2001 From: satackey <21271711+satackey@users.noreply.github.com> Date: Sun, 14 Jun 2020 18:14:14 +0900 Subject: [PATCH] tar cf docker load cwd --- src/LayerCache.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() {