Skip to content

Commit da7273d

Browse files
readonly
1 parent 4063d1a commit da7273d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docker.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -603,10 +603,10 @@ func (p *DockerProvider) CreateContainer(ctx context.Context, req ContainerReque
603603
mounts := []mount.Mount{}
604604
for hostPath, innerPath := range req.BindMounts {
605605
mounts = append(mounts, mount.Mount{
606-
Type: mount.TypeBind,
607-
Source: hostPath,
608-
Target: innerPath,
609-
BindOptions: &mount.BindOptions{Propagation: "private"},
606+
Type: mount.TypeBind,
607+
Source: hostPath,
608+
Target: innerPath,
609+
ReadOnly: true,
610610
})
611611
}
612612
for volumeName, innerPath := range req.VolumeMounts {

0 commit comments

Comments
 (0)