C library
The basic library that almost every program uses to talk to the operating system kernel, such as glibc on Debian Linux or musl on Alpine Linux.
In more detail
Programs compiled against glibc may fail or behave differently on Alpine, which uses musl. That is the most common surprise when moving to a smaller Alpine base, and a reason to use a slim Debian base for some languages.
Example
CGO_ENABLED=0 removes the need for the C library at run timeRelated terms
- shared library — Ready-made code that many programs load at run time instead of each carrying its own copy.
- Alpine Linux — A very small Linux distribution often used as a base image because it is only a few megabytes.
- Debian — A long-established, community-run Linux distribution known for stability, used as the base of many images.
Taught in
- Container Hardening: Distroless & Rootless — Cloud Security & DevSecOps Engineering
- FROM, WORKDIR, COPY And ADD — Docker Architecture & Production Containers
- Multi Stage Builds, Targets And Build Secrets — Docker Architecture & Production Containers
- Minimal Bases, Non Root Users And Smaller Images — Docker Architecture & Production Containers
- Scan, Patch And Inspect The Software Supply Chain — Docker Architecture & Production Containers
- Building Static Binaries — Concurrent Systems Programming with Go
- The App In /bin That Vanished: The FHS, Distributions And Licences — CompTIA Linux+ (XK0-006) Exam Prep
- The Upgrade That Broke Nginx: Packages, Repositories And Pins On Both Families — CompTIA Linux+ (XK0-006) Exam Prep
- What Changed Last Night? Integrity, Scans, Benchmarks And Secure Deletion — CompTIA Linux+ (XK0-006) Exam Prep
- Patched On Paper: Missing Updates, Broken Chains, Old Protocols And Open Doors — CompTIA Linux+ (XK0-006) Exam Prep
- Shared Libraries: Why A Program Will Not Start — LPIC-1 Linux Administrator (101-500 and 102-500) Exam Prep