瀏覽代碼

We now support multiple roModes

Docker-DCO-1.1-Signed-off-by: Dan Walsh <dwalsh@redhat.com> (github: rhatdan)
Dan Walsh 10 年之前
父節點
當前提交
b28d6eaa94
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      daemon/volumes.go

+ 1 - 1
daemon/volumes.go

@@ -195,7 +195,7 @@ func (daemon *Daemon) registerMountPoints(container *Container, hostConfig *runc
 			cp := &mountPoint{
 			cp := &mountPoint{
 				Name:        m.Name,
 				Name:        m.Name,
 				Source:      m.Source,
 				Source:      m.Source,
-				RW:          m.RW && mode != "ro",
+				RW:          m.RW && !roModes[mode],
 				Driver:      m.Driver,
 				Driver:      m.Driver,
 				Destination: m.Destination,
 				Destination: m.Destination,
 			}
 			}