From 15a9f9204428553ba1d32b0638a4989c7f7de201 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Gronowski?= Date: Fri, 8 Nov 2024 16:45:42 +0100 Subject: [PATCH] docker/install: Copy all `rootless-extras` files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Paweł Gronowski --- src/docker/install.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/docker/install.ts b/src/docker/install.ts index 0c0203d..10d3b7b 100644 --- a/src/docker/install.ts +++ b/src/docker/install.ts @@ -170,7 +170,11 @@ export class Install { if (this.rootless) { core.info(`Downloading Docker rootless extras ${version} from ${this.source.channel} at download.docker.com`); const extrasFolder = await this.downloadStaticArchive('docker-rootless-extras', this.source); - fs.copyFileSync(path.join(extrasFolder, 'dockerd-rootless.sh'), path.join(extractFolder, 'dockerd-rootless.sh')); + fs.readdirSync(extrasFolder).forEach(file => { + const src = path.join(extrasFolder, file); + const dest = path.join(extractFolder, file); + fs.copyFileSync(src, dest); + }); } break; }