Przeglądaj źródła

We now support multiple roModes

Docker-DCO-1.1-Signed-off-by: Dan Walsh <dwalsh@redhat.com> (github: rhatdan)
Dan Walsh 10 lat temu
rodzic
commit
b28d6eaa94
1 zmienionych plików z 1 dodań i 1 usunięć
  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{
 				Name:        m.Name,
 				Source:      m.Source,
-				RW:          m.RW && mode != "ro",
+				RW:          m.RW && !roModes[mode],
 				Driver:      m.Driver,
 				Destination: m.Destination,
 			}