Creating Ubuntu and Debian container base images, the old and simple way
summary
Shows how to build reproducible Ubuntu/Debian root filesystems using debootstrap and multistrap, with exact command-line parameters, config file structure, and keyring handling for signed repositories. Demonstrates fixing three immediate template issues (SSH keys, machine-id, resolv.conf), optional minimize steps that cut images from ~200MB to ~100MB, and boot-testing via systemd-nspawn or libvirt/guestfish to produce QCOW/VMDK images that actually boot.
AI-written summary · about
chapters (18)
- 0:00Introduction
- 0:30What is a base image
- 2:36Building your own base image
- 3:40The tools
- 5:32The bootstrap
- 6:40Multistrap
- 7:21Concrete
- 9:16Why Multistrap
- 11:33Running commands
- 12:06Building a template
- 13:11Removing identifiable information
- 14:42Customising the image
- 15:40Minimize the image
- 17:05Instantiate the template
- 18:05System DNS Born
- 18:50Throw away changes
- 19:18Libert
- 20:37Guestfish
related talks
35mCooking a Debian System: One, Two, Debos!
25mIntroduction to Bootable Containers
31mLet's Build And Break A Container By Hand Without Docker Or LXC
34mLinux Distribution Build Tools for Custom Container Images
35mSystem provisioning and bootc, now and the future
30mBuilding Linux Distributions for Fun and Profit
01h 31mTutorial: Using Linux Primitives to Build Your Own Containers
41mDebian & Yocto: State of the Art
