[Devel] [RFC] [PATCH 0/3] containers: introduction
Serge E. Hallyn
serue at us.ibm.com
Tue Dec 19 22:01:28 PST 2006
Following is a small patchset implementing what I was describing
about earlier, namely semantics for a hierarchical container
naming scheme.
What works:
1. ls -l /proc/$$/container
shows the full hierarchical name of the container;
2. mount -t containerfs none /container
results in a file tree under /container representing the
full container hierarchy
3. cd /proc/$$/container; ls
results in a listing of child containers
What doesn't work:
1. The /proc/$$/container link always appears dead (red
in bash on my fedora test system) because it points
into a kern_mounted fs.
2. Features like
cd /proc/$$/container
mv container_3 my_child_container
to rename a container or
cd /proc/$$/container
rm container_3
to kill all processes a container are unimplemented.
3. Semantics for entering a namespace are not only
unimplemented, but entirely unconsidered thus far.
I suppose one cool way to enter a container would
be
ln -s /proc/$$/container/child_container /proc/$$/container
but that
a. Does not provide the ability to switch only
some of the namespaces, as Herbert wants.
b. May be unimplementable using proc support
as is - not sure.
thanks,
-serge
_______________________________________________
Containers mailing list
Containers at lists.osdl.org
https://lists.osdl.org/mailman/listinfo/containers
More information about the Devel
mailing list