docker: fix readOnly volumes in createContainer (#236)

This commit is contained in:
name_snrl
2025-07-29 18:12:01 +09:00
committed by GitHub
parent 1e051b849b
commit 878781f9c4

View File

@@ -59,7 +59,9 @@ export async function createContainer(
] ]
for (const mountVolume of mountVolumes) { for (const mountVolume of mountVolumes) {
dockerArgs.push( dockerArgs.push(
`-v=${mountVolume.sourceVolumePath}:${mountVolume.targetVolumePath}` `-v=${mountVolume.sourceVolumePath}:${mountVolume.targetVolumePath}${
mountVolume.readOnly ? ':ro' : ''
}`
) )
} }
if (args.entryPoint) { if (args.entryPoint) {