Skip to content

Commit 878781f

Browse files
authored
docker: fix readOnly volumes in createContainer (#236)
1 parent 1e051b8 commit 878781f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/docker/src/dockerCommands/container.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ export async function createContainer(
5959
]
6060
for (const mountVolume of mountVolumes) {
6161
dockerArgs.push(
62-
`-v=${mountVolume.sourceVolumePath}:${mountVolume.targetVolumePath}`
62+
`-v=${mountVolume.sourceVolumePath}:${mountVolume.targetVolumePath}${
63+
mountVolume.readOnly ? ':ro' : ''
64+
}`
6365
)
6466
}
6567
if (args.entryPoint) {

0 commit comments

Comments
 (0)