diff --git a/docker.go b/docker.go index d4f76bb064..a5c8a402f4 100644 --- a/docker.go +++ b/docker.go @@ -603,10 +603,10 @@ func (p *DockerProvider) CreateContainer(ctx context.Context, req ContainerReque mounts := []mount.Mount{} for hostPath, innerPath := range req.BindMounts { mounts = append(mounts, mount.Mount{ - Type: mount.TypeBind, - Source: hostPath, - Target: innerPath, - BindOptions: &mount.BindOptions{Propagation: "private"}, + Type: mount.TypeBind, + Source: hostPath, + Target: innerPath, + ReadOnly: true, }) } for volumeName, innerPath := range req.VolumeMounts {