mirror of
https://github.com/containerd/containerd.git
synced 2026-08-09 17:39:22 +00:00
Merge pull request #401 from Random-Liu/add-comment
Add comment for #398.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user