Skip to content

Commit

Permalink
Merge pull request #1828 from runcom/nodev-1.12
Browse files Browse the repository at this point in the history
BACKPORT: Add nodev to options of bind mounts from kube
  • Loading branch information
k8s-ci-robot committed Oct 16, 2018
2 parents 7c2e747 + 38ba6a0 commit f90cdc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/container_create_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,7 @@ func addOCIBindMounts(mountLabel string, containerConfig *pb.ContainerConfig, sp
if mount.Readonly {
options = []string{"ro"}
}
options = append(options, "rbind")
options = append(options, "rbind", "nodev")

// mount propagation
mountInfos, err := dockermounts.GetMounts(nil)
Expand Down

0 comments on commit f90cdc4

Please sign in to comment.