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

Docker Networking Basics

Connect containers on user-defined networks, publish ports to the host, and isolate workloads.
Finish every challenge, or complete the star challenge, to complete the module.

Challenges

4 challenges

Containers That Find Each Other

Sign up to unlock
—No data yeteasy
About this challenge

Put containers on a user-defined bridge network so they resolve each other by name, contrast it with the default bridge, join a second network, disconnect one, and remove a network only once it is empty.

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

Ports Published to the Host

Sign up to unlock
—No data yeteasy
About this challenge

Publish container ports to the host on fixed, daemon-chosen and loopback-only host ports, read the mappings back, see a second container fail on a taken host port, and reach unpublished ports across a shared network.

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

Isolation Modes

Sign up to unlock
—No data yeteasy
About this challenge

Run containers on the none, host and internal network configurations and on separate bridges, and prove what each one can and cannot reach.

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

Three-Tier Network Layout

STAR
Solving it completes the module
—No data yeteasy
About this challenge

Lay out a three-tier app on user-defined bridges: a dual-homed API, an internal backend network with no egress, a frontend published on loopback only, plus a no-network job and a host-network probe; then prove every reachability rule, cut the API off its database and reconnect it, and remove a network only once it is empty.

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.