Skip to content

Commit

Permalink
test slave propagation
Browse files Browse the repository at this point in the history
  • Loading branch information
YannikBramkamp committed Dec 23, 2020
1 parent 76be4c5 commit 6aabd70
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -603,9 +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,
Type: mount.TypeBind,
Source: hostPath,
Target: innerPath,
BindOptions: &mount.BindOptions{Propagation: "slave"},
})
}
for volumeName, innerPath := range req.VolumeMounts {
Expand Down

0 comments on commit 6aabd70

Please sign in to comment.