Skip to content

Commit e5be0f8

Browse files
committed
Add dev symbolic links in runtime_linux.md
This is adapted from: https://github.com/opencontainers/runc/blob/master/libcontainer/SPEC.md Addresses: opencontainers/runc#760 Signed-off-by: Qiang Huang <[email protected]>
1 parent 9266b23 commit e5be0f8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

runtime-linux.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,14 @@
55
By default, only the `stdin`, `stdout` and `stderr` file descriptors are kept open for the application by the runtime.
66
The runtime MAY pass additional file descriptors to the application to support features such as [socket activation](http://0pointer.de/blog/projects/socket-activated-containers.html).
77
Some of the file descriptors MAY be redirected to `/dev/null` even though they are open.
8+
9+
## Dev symbolic links
10+
11+
After the container has `/proc` mounted, the following standard symlinks MUST be setup within `/dev/` for the io.
12+
13+
| Source | Destination |
14+
| --------------- | ----------- |
15+
| /proc/self/fd | /dev/fd |
16+
| /proc/self/fd/0 | /dev/stdin |
17+
| /proc/self/fd/1 | /dev/stdout |
18+
| /proc/self/fd/2 | /dev/stderr |

0 commit comments

Comments
 (0)