CONTAINER-...DEBOOTSTRAP(1)
π CONTAINER-BUILD-DEBOOTSTRAP π
okay bestie, welcome to the container-build-debootstrap page from the General Commands Manual β yes the title line says CONTAINER-...DEBOOTSTRAP(1) because man pages are dramatic like that π
β¨ NAME β¨
container-build-debootstrap β build a basic Debian based container with debootstrap or mmdebstrap. that's it, that's the whole job description π
πΈ SYNOPSIS πΈ
container build -s debootstrap ['OPTIONS']
cnt b -s debootstrap ['OPTIONS']
container build -s mmdebstrap ['OPTIONS']
cnt b -s mmdebstrap ['OPTIONS']
so you can spell out container build or just vibe with cnt b, your call π«Ά
π¦ DESCRIPTION π¦
the debootstrap container build script uses debootstrap(8) or mmdebstrap(1) to build a Debian based container. lowkey the whole thing is just those two tools doing the heavy lifting and this script being the main character β¨
this script builds a pure Debian system with three modifications, and ngl they're kind of iconic:
- apt cache of packages downloaded during debootstrap is cleaned π§Ή
- hostname is set (container name) in
/etc/hostnameπ - root password is set (user specified or 16 random characters) π
so like, it's a pure Debian systemβ¦ with exactly three tweaks. not four. not two. three. periodt π
π OPTIONS π
the following script options are available, and bestie there are five of them, we're listing all five:
-n,--name='NAME'β specify container name. your container, your name, your rules π-a,--architecture='ARCHITECTURE'β specify the Debian architecture, and it defaults to the host systems architecture because of course it does, it's matching your vibe by default π¦-d,--distribution='DISTRIBUTION'β specify the Debian distribution, defaults to'bookworm'π-m,--mirror='MIRROR'β specify the Debian mirror, defaults to'https://deb.debian.org/debian'π-p,--root-password='PASSWORD'β specify the root password, defaults to a random 16 character password π (yes it's random, yes it's 16 chars, no we're not shortening it)
π« EXAMPLES π«
Build a Debian 12 (bookworm) based container with same architecture as the host system using debootstrap:
sudo container build -s debootstrap -n bookworm.example.net
Build a Debian 12 (bookworm) based container with different architecture as the host system using mmdebstrap:
sudo container build -s mmdebstrap -n bookworm-i386.example.net -- -a
i386
see that -- in the second one? that's the little door that hands -a i386 straight through to mmdebstrap. chef's kiss π©βπ³π
π SEE ALSO π
go read those too, they're the extended universe iykyk πβ¨
π‘ HOMEPAGE π‘
more information about compute-tools and the Open Infrastructure project can be found on the homepage (https://open-infrastructure.net). go say hi π«Ά
π 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. literally everything else. bring it π
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 "and others", the unsung heroes πβ¨
Open Infrastructure π compute-tools π and this lil page lives under CONTAINER-...DEBOOTSTRAP(1) β that's the source, the version and the whole vibe, mwah π
bye bestie, go build something cute πΈπ¦
π¦ 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