6 "github.com/docker/docker/container"
9 // checkIfPathIsInAVolume checks if the path is in a volume. If it is, it
10 // cannot be in a read-only volume. If it is not in a volume, the container
11 // cannot be configured with a read-only rootfs.
12 func checkIfPathIsInAVolume(container *container.Container, absPath string) (bool, error) {
14 for _, mnt := range container.MountPoints {
15 if toVolume = mnt.HasResource(absPath); toVolume {
19 return false, ErrVolumeReadonly
25 // isOnlineFSOperationPermitted returns an error if an online filesystem operation
27 func (daemon *Daemon) isOnlineFSOperationPermitted(container *container.Container) error {