1
0
mirror of https://github.com/docker/cli.git synced 2026-01-15 07:40:57 +03:00

Merge pull request #14588 from rhatdan/ro

We now support multiple roModes
Upstream-commit: 24c09006c9beedee9c9a54719b6b34d584b3555b
Component: engine
This commit is contained in:
Brian Goff
2015-07-13 09:53:55 -04:00

View File

@@ -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,
}