Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
Merge pull request #210 from justincormack/bind-shared
Browse files Browse the repository at this point in the history
Default bind mounts to rshared not rprivate if not specified
  • Loading branch information
justincormack authored Apr 4, 2018
2 parents 749585d + 25cfac5 commit f1ae82c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/moby/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,8 @@ func ConfigInspectToOCI(yaml *Image, inspect types.ImageInspect, idMap map[strin
}
src := parts[0]
dest := parts[1]
opts := []string{"rw", "rbind", "rprivate"}
// default to rshared if not specified
opts := []string{"rw", "rbind", "rshared"}
if len(parts) == 3 {
opts = append(strings.Split(parts[2], ","), "rbind")
}
Expand Down

0 comments on commit f1ae82c

Please sign in to comment.