浏览代码

Merge pull request #20333 from rhatdan/mqueue

/dev/mqueue should never be mounted readonly
Brian Goff 9 年之前
父节点
当前提交
be5939f407
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      daemon/execdriver/native/create.go

+ 1 - 1
daemon/execdriver/native/create.go

@@ -104,7 +104,7 @@ func (d *Driver) createContainer(c *execdriver.Command, hooks execdriver.Hooks)
 	if container.Readonlyfs {
 		for i := range container.Mounts {
 			switch container.Mounts[i].Destination {
-			case "/proc", "/dev", "/dev/pts":
+			case "/proc", "/dev", "/dev/pts", "/dev/mqueue":
 				continue
 			}
 			container.Mounts[i].Flags |= syscall.MS_RDONLY