Merge pull request #337 from alban/alban/stdio

libcontainer/SPEC.md: fix /dev/stdio symlinks
This commit is contained in:
Mrunal Patel 2015-10-23 13:40:56 -07:00
commit b741e3dc9d
1 changed files with 6 additions and 6 deletions

View File

@ -97,12 +97,12 @@ that is local to the container's rootfs.
After the container has `/proc` mounted a few standard symlinks are setup After the container has `/proc` mounted a few standard symlinks are setup
within `/dev/` for the io. within `/dev/` for the io.
| Source | Destination | | Source | Destination |
| ------------ | ----------- | | --------------- | ----------- |
| /proc/1/fd | /dev/fd | | /proc/self/fd | /dev/fd |
| /proc/1/fd/0 | /dev/stdin | | /proc/self/fd/0 | /dev/stdin |
| /proc/1/fd/1 | /dev/stdout | | /proc/self/fd/1 | /dev/stdout |
| /proc/1/fd/2 | /dev/stderr | | /proc/self/fd/2 | /dev/stderr |
A `pivot_root` is used to change the root for the process, effectively A `pivot_root` is used to change the root for the process, effectively
jailing the process inside the rootfs. jailing the process inside the rootfs.