Skip to content

Commit

Permalink
readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
YannikBramkamp committed Dec 23, 2020
1 parent 4063d1a commit da7273d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit da7273d

Please sign in to comment.