Add comment for #398.

Signed-off-by: Lantao Liu <lantaol@google.com>
This commit is contained in:
Lantao Liu 2017-11-06 20:54:50 +00:00
parent e363c218d6
commit 6f97764171

View File

@ -603,6 +603,8 @@ func (c *criContainerdService) addOCIBindMounts(g *generate.Generator, mounts []
options = append(options, "rprivate") options = append(options, "rprivate")
} }
// NOTE(random-liu): we don't change all mounts to `ro` when root filesystem
// is readonly. This is different from docker's behavior, but make more sense.
if mount.GetReadonly() { if mount.GetReadonly() {
options = append(options, "ro") options = append(options, "ro")
} else { } else {