Skip to content

Clarifying and cleaning up root filesystem section - #25

Closed
thecloudtaylor wants to merge 0 commit into
opencontainers:masterfrom
thecloudtaylor:master
Closed

thecloudtaylor wants to merge 0 commit into
opencontainers:masterfrom
thecloudtaylor:master

Conversation

@thecloudtaylor

Copy link
Copy Markdown

Making the root filesystem examples match the implementation (which is cleaner) and disambiguating the notion of read-only.

#23 (comment)

@wking

wking commented Jun 26, 2015

Copy link
Copy Markdown
Contributor

On Thu, Jun 25, 2015 at 04:41:48PM -0700, Taylor Brown wrote:

  • Adding placeholder for Windows configuration
  • Manifest version should be platform agnostic.
    …
  • Revert "Adding placeholder for Windows configuration"

You probably want to rebase these out of this PR to avoid pulling
these in (they're from #22?).

  • cleaning up example for filesystem to better match runc example and improve clarity.
  • Attempting to clarify read-only FS. (Issue 23)

These look pretty good to me. Only suggestion is to change:

“Some platforms may not support read-only file systems or read-only
container file systems.”

to:

“Some platforms may not support read-only root filesystems, and some
may not support read-only file systems at all.”

I think that's what you were saying, and it seems like a useful
distinction to draw.

@wking

wking commented Jun 26, 2015

Copy link
Copy Markdown
Contributor

Or maybe you're saying that the filesystem containing the OC container
definition (vs. the filesystems mounted into running containers) must
be read-write? So we have three filesystem cases:

  1. The filesystem specifying the container (the “image” in Docker's
    lingo).
  2. The filesystems mounted into a created container (the “container”
    in Docker's lingo).
    i. The root of the created container.
    ii. Additional filesystems mounted into the created container.

My understanding is that Windows requires 2.i to be writable 1. In
my previous comment here, I felt like you were distinguishing between
2.i and 2.ii, but it's possible you were talking about 1?

I guess I'm not clear on how container creation is going to handle
these filesystems. Are they just bind-mounted from their current
locations (in which case a writable 2.i requires a writable 1)? Are
they copied off (hopefully via CoW) to some special location for the
running containers (like Docker does when launching images now)? I
think I like the bind approach better (leaving CoW copies up to the
user and avoiding the “how do I get information out of a volume” issue
that Docker sometimes struggles with), but I'm not sure which way this
project will go. I guess I'll spin up runc to find out ;).

@wking

wking commented Jun 26, 2015

Copy link
Copy Markdown
Contributor

On Thu, Jun 25, 2015 at 05:42:09PM -0700, W. Trevor King wrote:

I guess I'm not clear on how container creation is going to handle
these filesystems. Are they just bind-mounted from their current
locations (in which case a writable 2.i requires a writable 1)?

This is how runc seems to work (yay :).

@thecloudtaylor

Copy link
Copy Markdown
Author

I'll update the PR and include the clarification you suggested, I'm new to git so apologies for the learning curve...

To your second question - I am trying to clarify between 2.i and 2.ii. Windows (today) can not boot off of a read only volume, it can (though rarely used directly) support secondary/additional read-only volumes. As currently being implemented in the Windows OS the root file system (as were referring to it in this discussion) is always COW, with the express ability to mount additional file system locations (directories or volumes) from the host into the container read/write.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants