Linux Labs

Containers: Docker and compose / Stage 7 of 11

Container networking: names and ports

Not running Starting usually ~20 s
Leave the lesson

Step 5 of 6 · on a machine · 4 min

Experiment: the reports service

The reports team needs a summary from the stats service. The report container is already running in the office network: every five seconds it requests http://stats/ and writes to its log whether it got the page. stats itself does not exist yet — its page is served by a web server from the nginx:alpine image on port 80.

Exercise · do it

Start the stats service

Start a stats container from the nginx:alpine image so that report gets its page at http://stats/. The report log shows whether it got the page.

Sign in and start The machine is available after signing in

Goals · 0 of 2

  • Start stats from nginx:alpine not done yet
  • Get report's requests through to stats not done yet

Step goals

0 of 2
  • Start stats from nginx:alpine — not done yet
  • Get report's requests through to stats — not done yet
Ubuntu 24.04

Step goals

0 of 2
  • Start stats from nginx:alpine — not done yet
  • Get report's requests through to stats — not done yet
Loading…