1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

We now support multiple roModes

Docker-DCO-1.1-Signed-off-by: Dan Walsh <dwalsh@redhat.com> (github: rhatdan)
This commit is contained in:
Dan Walsh 2015-07-13 09:18:16 -04:00
parent b0da494aa3
commit b28d6eaa94

View file

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