Build a Container Image from Scratch
summary
Manual assembly of an OCI image builds the four concrete parts: layers (tar.gz change sets), content-addressable blobs, a JSON config and a manifest/index.json. The demo compiles a statically linked hello C binary, packages it into a layer, computes SHA-256 names, updates config (entrypoint), manifest and index, tars the layout, then loads it into Podman. Both a scratch-based image and an Alpine-based image load and run successfully, showing expected output.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 1:03What is a container image
- 2:27History of image formats
- 3:32Image layers explained
- 7:23Layers build filesystem
- 9:51OCI image config
- 10:54Manifests and content addressability
- 13:22Index.json and multi-platform
- 14:50Build image from scratch
- 20:37Demo: Minimal OCI image
- 26:22Demo: Alpine layers
- 32:33Key takeaways and Q&A
related talks
28mThe Ultimate Container Challenge: An Interactive Trivia Game on OCI, Podman, Docker...
25mBuild Distroless Containers the Easy Way: From Full Fat To Featherweight With Unbase_oci
30mLearning by Pulling Things Apart
51mBuilding Container Images with OpenEmbedded and the Yocto Project
44mThe Containerization of the Operating System: Exploring Bootc and the Future of Linux Deployment
01h 00mDocker, FROM scratch
34mDeep Dive: Cloud Native Buildpacks
01h 15mEvaluation of OSS Options to Build Container Images
