runc-create(8)

πŸ“¦
version 1.5.2 Β· 3 versions
, in alpine 3.24, arch rolling, fedora 43, fedora 44, nixpkgs unstable, ubuntu resolute, ubuntu stonking

✨ runc-create(8) ✨

okay bestie, you found the runc-create page in the System Manager's Manual and honestly? iconic. let's get into it πŸ’…


🌸 NAME 🌸

runc-create β€” create a container 🫢


✨ SYNOPSIS ✨

runc create [option ...] container-id

πŸŽ€ DESCRIPTION πŸŽ€

so the create command literally creates an instance of a container from a bundle. that's the whole vibe. πŸ¦‹

and what even is a bundle, you ask? it's a directory, and inside it there's a specification file named config.json, plus a root filesystem. that's it, that's the bundle. main character energy fr fr.


πŸ’– OPTIONS πŸ’–

  • --bundle|-b path β€” the path to the root of the bundle directory. default is the current directory, no cap. πŸ“
  • --console-socket path β€” the path to an AF_UNIX socket that's gonna receive a file descriptor referencing the master end of the console's pseudoterminal. yes it's giving very specific. go read docs/terminals at https://github.com/opencontainers/runc/blob/master/docs/terminals.md for the full tea. 🧚
  • --pid-file path β€” tell it which file to write the initial container process' PID to. like, put the PID here, bestie. πŸ“
  • --no-pivot β€” do NOT use pivot root to jail the process inside the rootfs. > ⚠️ bestie listen to me: this should not be used except in exceptional circumstances, and it may be unsafe from the security standpoint. i'm not being dramatic, that's just the facts. πŸ’€
  • --no-new-keyring β€” don't create a new session keyring for the container. heads up though: this will cause the container to inherit the calling process's session key. so like, it's a whole thing. πŸ”‘
  • --preserve-fds N β€” pass N additional file descriptors to the container (stdio + $LISTEN_FDS + N in total). default is 0. the math is mathing, don't worry. ✨

🌈 SEE ALSO 🌈

runc-spec(8), runc-start(8), runc(8). go read those next, i'm obsessed with them actually πŸ‘‘


and that's the whole page, no notes πŸ’œ this was runc-create(8) from the System Manager's Manual β€” runc's official docs, date and version included, all wrapped up. slay, go create something 🌟

πŸ“¦ where this page comes from