From 4d1d6d45253b4a0ab3750b5e9fbdd6908224d236 Mon Sep 17 00:00:00 2001 From: syfxlin Date: Thu, 25 Jan 2024 23:01:45 +0800 Subject: [PATCH] fix(pack): Fix volume mount --- src/modules/service/pack.context.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/service/pack.context.ts b/src/modules/service/pack.context.ts index 62a675e..4ce53d1 100644 --- a/src/modules/service/pack.context.ts +++ b/src/modules/service/pack.context.ts @@ -412,7 +412,7 @@ export class PackContext { const cpath = volume.cpath; const readonly = volume.readonly ? "ro" : "rw"; options.Volumes = options.Volumes ?? []; - options.Volumes.push(`${hpath}:${cpath}:${readonly ? "ro" : "rw"}`); + options.Volumes.push(`${hpath}:${cpath}:${readonly}`); } try {