1
0
mirror of https://github.com/opencontainers/runtime-spec.git synced 2026-02-05 18:45:18 +01:00
Files
runtime-spec/runtime-linux.md
Sebastiaan van Stijn 9ceba9f40b update http links to https
Most of these either redirect (so changing saves an extra redirect),
or have a TLS version available.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-11-04 12:28:14 +01:00

22 lines
1.0 KiB
Markdown

# <a name="linuxRuntime" />Linux Runtime
## <a name="runtimeLinuxFileDescriptors" />File descriptors
By default, only the `stdin`, `stdout` and `stderr` file descriptors are kept open for the application by the runtime.
The runtime MAY pass additional file descriptors to the application to support features such as [socket activation][socket-activated-containers].
Some of the file descriptors MAY be redirected to `/dev/null` even though they are open.
## <a name="runtimeLinuxDevSymbolicLinks" /> Dev symbolic links
While creating the container (step 2 in the [lifecycle](runtime.md#lifecycle)), runtimes MUST create the following symlinks if the source file exists after processing [`mounts`](config.md#mounts):
| Source | Destination |
| --------------- | ----------- |
| /proc/self/fd | /dev/fd |
| /proc/self/fd/0 | /dev/stdin |
| /proc/self/fd/1 | /dev/stdout |
| /proc/self/fd/2 | /dev/stderr |
[socket-activated-containers]: https://0pointer.de/blog/projects/socket-activated-containers.html