Rootless Docker Configuration
Expert · 45 minutes · 100 points
In this expert-level lab, you will configure and operate Docker in rootless mode — a security-hardened setup where the Docker daemon and containers run entirely without root privileges. You will install the rootless Docker toolkit, configure the user-level daemon, validate privilege isolation, and tune namespace and resource settings. This lab reinforces defense-in-depth principles for production container environments.
What you’ll learn
- Understand the security model and architecture of rootless Docker
- Configure subordinate UID/GID mappings required for user namespace isolation
- Install and initialise the rootless Docker daemon as an unprivileged user
- Validate that containers launched in rootless mode cannot escalate to host root
- Tune daemon configuration and resource limits for a rootless deployment
How this lab works
- Start the lab: One click starts a container on your computer with a real terminal: nothing to install by hand, nothing to clean up.
- Work through 5 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work runs each task’s checks in your container and says what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Runs: A container on your computer, with a real terminal
- Image: docker:dind
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop or Docker Engine installed and running on the host
- Basic understanding of Linux user namespaces and UID/GID mapping
- Familiarity with Docker daemon configuration
Topics: rootless-docker, user-namespaces, security-hardening, privilege-isolation, subuid, subgid, cgroups, docker-daemon, defense-in-depth, container-security
Create a free account to start this lab.