CONTAINER-BUILD(1)
β¨ NAME β¨
container-build β build a container, bestie π
πΈ SYNOPSIS πΈ
container build ['OPTIONS']
cnt b ['OPTIONS']
π¦ DESCRIPTION π¦
okay so the container build command does exactly what it says on the tin: it builds a container, and it does it based on a script. that's the whole vibe, no cap π₯
π Scripts π
here's the lineup of build scripts you can pick from, queen's choice:
debootstrapβ the basic script for building a Debian based container. seecontainer-build-debootstrap(1)for the deets πdebconfβ the advanced script that automatically builds a Debian based container. seecontainer-build-debconf(1)πdefaultβ a symlink (if it exists) pointing at whichever build script gets used when you didn't specify one. on Debian based systems you can manage it withupdate-alternatives(1), i.e.sudo update-alternatives --config container_build-script. very main character of it β¨
π OPTIONS π
here are all the container build options, and yes we're going through every single one, periodt:
-n,--name='NAME'β tell it what to call the container. name your baby π«Ά-c,--capability='CAPABILITY'β the capabilities you wanna grant, seecapabilities(7).-d,--drop-capability='DROP_CAPABILITY'β the capabilities you wanna drop, seecapabilities(7). bye bye π-s,--script='SCRIPT'β pick your container build script. defaults todebootstrap.-v,--verboseβ spill the tea on what's being done, literally narrate it π’-b,--bind='DIRECTORY:DIRECTORY[:OPTIONS][;DIRECTORY:DIRECTORY[:OPTIONS]]'β container read-write bind mounts, see thesystemd-nspawn(1)--bindoption.--bind-ro='DIRECTORY:DIRECTORY[:OPTIONS][;DIRECTORY:DIRECTORY[:OPTIONS]]'β container read-only bind mounts, see thesystemd-nspawn(1)--bind-rooption. look but don't touch π--cnt-overlay='DIRECTORY_LOWER:DIRECTORY_UPPER:DIRECTORY_WORK:DIRECTORY_MERGED[;DIRECTORY_UPPER:DIRECTORY_LOWER:DIRECTORY_WORK:DIRECTORY_MERGED]'β container overlay mounts, seeDocumentation/filesystems/overlayfs.txt. layers on layers π§--cnt.overlay-options='OPTION1,OPTION2[;OPTION3,OPTION4]'β container overlay mount options, seeDocumentation/filesystems/overlayfs.txt.--cnt.start='OPTION1[,OPTION2,...]'β container start options, seecontainer-start(1). set it up and send it π
π₯ EXAMPLES π₯
build an example.net container using the debootstrap script:
sudo container build -n example.net -s debootstrap
build an example.net container using the debconf script:
sudo container build -n example.net -s debconf
build an example.net container with the default build script and start it:
sudo container build,start -n example.net
ate. no crumbs π
π SEE ALSO π
π HOMEPAGE π
more info about compute-tools and the Open Infrastructure project lives on the homepage at 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 at https://bugs.debian.org. go off, report that bug π
π AUTHORS π
compute-tools were written by Daniel Baumann <daniel.baumann@open-infrastructure.net> and others. icons only, fr fr β
and that's the whole page, bestie π this is container-build(1) from compute-tools, brought to you by Open Infrastructure β go build something iconic with it π
β¨
π¦ where this page comes from
- debian bookworm: open-infrastructure-compute-tools 20221223-3 Β· GPL-3.0-or-later
- ubuntu noble: open-infrastructure-compute-tools 20221223-3 Β· GPL-3.0-or-later
- π the page's license: GPL-3.0+
- Copyright (C) 2014-2022 Daniel Baumann <daniel.baumann@open-infrastructure.net>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms