Container isolation limits and layered trust
Worked example
This is an offline lesson. Data are fictional and Docker commands are unexecuted. Any optional execution requires an authorized disposable VM, a verified context, synthetic data, restricted access and no external transmission. Do not collect secrets or private output. Treat the worksheet as offline evidence. Before any separately authorized server query, verify the effective endpoint and its trust boundary, including context overrides. Do not change runtime state, mount host data or modify Desktop settings in this exercise.
Fictional deployment review:A: trusted internal app; nonroot; scoped network; minimal privileges; resource limits; reviewed imageB: untrusted third-party executable; same shared kernel; no separate sandbox approvalC: separate approved VM boundary; patched guest and host; restricted network; resource limitsQuestion: which boundary is appropriate for the threat model?A is a reasonable starting configuration for a trusted workload, subject to verification and patching. B must not be approved solely because it is a container: shared-kernel exposure, application vulnerabilities, supply-chain risks and misconfiguration remain. C adds a distinct kernel boundary and can be part of a stronger isolation strategy, but hypervisors and guests still need security review. Some alternative runtimes use sandboxing or VM technology, with compatibility and performance trade-offs. Mounts, credentials, network access, daemon permissions and resource exhaustion must be considered separately. Require approved isolation, least privilege and scoped access, verified artifact provenance, limits, logging and a response plan. This is a design review; no hostile executable is run. A VM boundary is one control, not automatic permission to execute unknown code. Document which host resources, credentials and network routes are exposed, and reject B until an owner approves an appropriate threat model and isolation policy.
Common mistake
Do not treat nonroot, an image signature, or a VM alone as proof of complete safety.
Manual practice
For A–C identify one residual risk and one verification requirement each. Write a decision for B that rejects execution until an approved isolation plan exists.
Worksheet: lab-fixtures/docker-container-internals/10-isolation-limits/scenario.txt.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Container isolation limits and layered trust — Knowledge check
Interpret synthetic runtime and isolation evidence and explain kernel and OCI boundaries.
What is normally shared by Linux containers on the same host?
Is a nonroot container alone adequate evidence for arbitrary untrusted code?
What remains necessary with a VM boundary?