CONTAINER-GET(1)

πŸ“¦
this version Β· 5 versions
, in debian bookworm, ubuntu noble

✨ CONTAINER-GET(1) ✨

okay bestie, so this is a page from the General Commands Manual (that's the manual name, she's fancy like that) and it's all about container-get, part of the compute-tools situation. let's get into it πŸ’…


🌸 NAME 🌸

container-get β€” download a container. that's it. that's the whole job. iconic behaviour honestly 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

container get ['OPTIONS']
cnt g ['OPTIONS']

two ways to say the same thing, because we love options (literally, there are options) πŸ’–


πŸŽ€ DESCRIPTION πŸŽ€

the container get command downloads a container based on a script. yes, a script. the script does the heavy lifting, you just vibe and pick which one. ✨

πŸ“œ Scripts

here are the download scripts you can pick from, no cap:

  • curl: the basic script that builds a Debian based container, see container-create-curl(1).
  • default: this one is a symlink (if it exists) to a download script that gets used when you didn't specify any script at all. on a Debian based system you can manage it through update-alternatives(1), like so: sudo update-alternatives --config container_get-script. very main character energy of it 🧚

πŸ’… OPTIONS πŸ’…

the following container get options are available, and bestie there are a lot of them, so buckle up:

  • -n, --name='NAME' β€” specify the container name. name your baby, you've earned it πŸ‘‘
  • -c, --capability='CAPABILITY' β€” specify capabilities to grant, see capabilities(7). giving it powers fr fr
  • -d, --drop-capability='DROP_CAPABILITY' β€” specify capabilities to drop, see capabilities(7). taking those powers away, not me being the villain 😭
  • -s, --script='SCRIPT' β€” specify the container build script. defaults to 'debootstrap'.
  • -v, --verbose β€” explain what is being done. she's a talker and honestly? we love that πŸ—£οΈ
  • -b, --bind='DIRECTORY:DIRECTORY[:OPTIONS][;DIRECTORY:DIRECTORY[:OPTIONS]]' β€” specify container read-write bind mounts, see the systemd-nspawn(1) --bind option. note the wild nesting in there: OPTIONS are optional, and you can chain a whole second mount on with a ; separated chunk. look at her go 🌈
  • --bind-ro='DIRECTORY:DIRECTORY[:OPTIONS][;DIRECTORY:DIRECTORY[:OPTIONS]]' β€” specify container read-only bind mounts, see the systemd-nspawn(1) --bind-ro option. same shape, but read-only, she's off-limits πŸ”’
  • --cnt-overlay='DIRECTORY_LOWER:DIRECTORY_UPPER:DIRECTORY_WORK:DIRECTORY_MERGED[;DIRECTORY_UPPER:DIRECTORY_LOWER:DIRECTORY_WORK:DIRECTORY_MERGED]' β€” specify container overlay mounts, see Documentation/filesystems/overlayfs.txt. yes the second group in the brackets really does list DIRECTORY_UPPER before DIRECTORY_LOWER β€” that's what the page says, we don't make the rules, we just respect them πŸ’€
  • --cnt.overlay-options='OPTION1,OPTION2[;OPTION3,OPTION4]' β€” specify container overlay mount options, see Documentation/filesystems/overlayfs.txt. commas within a group, semicolons between groups, keep up bestie πŸ“
  • --cnt.start='OPTION1[,OPTION2,...]' β€” specify container start options, see container-start(1).

πŸ”₯ EXAMPLES πŸ”₯

create an example.net container using the curl script:

sudo container get -n example.net -s curl

create an example.net container with the default download script and start it:

sudo container get,start -n example.net

see how get,start just glues them together? ate, no crumbs ⭐


πŸ’œ SEE ALSO πŸ’œ


🫢 HOMEPAGE 🫢

more information about compute-tools and the Open Infrastructure project can be found on the homepage: https://open-infrastructure.net ✨


πŸ’Œ CONTACT πŸ’Œ

bug reports, feature requests, help, patches, support and everything else are welcome on the Open Infrastructure Software Mailing List <software@lists.open-infrastructure.net>.

Debian specific bugs can also be reported in the Debian Bug Tracking System: https://bugs.debian.org.


πŸ‘‘ AUTHORS πŸ‘‘

compute-tools were written by Daniel Baumann <daniel.baumann@open-infrastructure.net> and others. shoutout to the "and others", we see you 🫑


and that's the whole page bestie, every single flag accounted for, nothing skipped, nothing invented πŸ’–

this cutie pie came to you from compute-tools by Open Infrastructure β€” stay slay, stay containerized πŸ¦‹πŸ’…

πŸ“¦ where this page comes from