StaffCoder
Docker
DockerLinux CLI
5 modules · 20 challengesSign up
Module 4 of 5 · 4 challenges

Docker Volumes & Persistent Storage

Manage persistent and temporary container storage safely.
Finish every challenge, or complete the star challenge, to complete the module.

Challenges

4 challenges

Data That Survives

Sign up to unlock
—No data yeteasy
About this challenge

Keep a database's data in a named volume: show it persists when the container is removed, is shared by two running containers, and can only be removed once no container holds it.

Solved in a browser IDE and graded by tests. Sign up to solve

Live Source With Bind Mounts

Sign up to unlock
—No data yeteasy
About this challenge

Bind-mount a host source directory into a running container with the mount flag so edits flow both ways without a rebuild, mount configuration read-only, see a missing host path refused, and read the mounts back from inspect.

Solved in a browser IDE and graded by tests. Sign up to solve

Ephemeral And Anonymous Storage

Sign up to unlock
—No data yeteasy
About this challenge

Put scratch data on size-limited tmpfs mounts, observe the anonymous volume an image's VOLUME instruction creates, remove containers together with their anonymous volumes, and clean up leftovers with a volume prune that spares volumes still wanted.

Solved in a browser IDE and graded by tests. Sign up to solve

Stateful Service With Safe Storage

STAR
Solving it completes the module
100%1 of 1 solvedeasy
About this challenge

Run a content service with a named data volume, a live bind-mounted source tree, a read-only config mount and a size-capped tmpfs scratch space; recreate it, prove each mount behaves as its type promises, and clean up volumes without touching the ones still wanted.

Solved in a browser IDE and graded by tests. Sign up to solve

We use cookies that are necessary to run Staffcoder, and optional analytics cookies to see which pages get used. Analytics stays off unless you accept. Read our Cookie Policy.