Docker & Containers
AppArmor and SELinux
Explain how AppArmor and SELinux add access checks on top of file modes, and how to read a denial and relabel a bind mount safely.
What you will be able to do
- Explain how path-based and label-based access checks differ.
- Read a kernel or audit denial and decide the least risky fix.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Docker & Containers
- User namespace remapIntermediate · 4 min
Explain how user namespace remapping maps container root to an unprivileged host user, and what that means for existing volumes and images before you enable it.
- seccomp profilesIntermediate · 5 min
Explain how a seccomp profile filters system calls, and how to test whether a seccomp block, rather than a missing capability, causes an EPERM error.
- Cgroups resource limitsAdvanced · 4 min
Explain how Docker resource flags become cgroup files that the kernel enforces, and how to read the limit a container really has on a live host.
- OOM exit codesAdvanced · 4 min
Explain what exit code 137 and the OOMKilled flag show, and separate a kernel memory kill from a crash or a manual stop before changing any limit.
- Container networkingAdvanced · 4 min
Explain why each container has its own network view, how a veth pair links it to the host, and why localhost inside one container cannot reach another.
- Bridge interfacesAdvanced · 4 min
Explain what docker0 and user-defined bridges are, how veth pairs attach containers to them, and where host routes and firewall rules can break container traffic.