Merge pull request #401 from Random-Liu/add-comment

Add comment for #398.
This commit is contained in:
Lantao Liu 2017-11-06 14:09:50 -08:00 committed by GitHub
commit b9d4eda403
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -603,6 +603,8 @@ func (c *criContainerdService) addOCIBindMounts(g *generate.Generator, mounts []
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() {
options = append(options, "ro")
} else {