Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-7580

Use root fs as lower RO layer and container fs as upper layer

    XMLWordPrintableJSON

    Details

    • Type: Wish
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: containerization
    • Labels:
      None

      Description

      See example:

      mkdir -p rootfs/{opt,container,workdir,result}
      mount -t overlay -o lowerdir=rootfs,upperdir=rootfs/container,workdir=rootfs/workdir none rootfs/result
      touch rootfs/result/opt/trash
      umount rootfs/result
      ls -a rootfs/opt/
      .  ..
      

      Where rootfs - imaginary root filesystem
      rootfs/opt - variable directory on that filesystem
      rootfs/container - container work dir
      rootfs/result - result overlayfs mountpoint(root fs from container point of view)

      So, any change under rootfs/result will be not visible from rootfs point of view and it will remain clean, so every container could have own snapshot of host's root filesystem, but changes would be individual.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mlesyk Mikhail Lesyk
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: