Linux Labs

Containers: Docker and compose / Stage 2 of 11 · step 6 of 8

Container won't start

medium ~20 min
Not running Starting usually ~20 s
Report a problem

Situation

The status page of the inventory project runs in the Docker container web from the inventory-web:1.0 image: the developers built the image, and the page is already inside. The container serves it on port 8080, and it is created by the script /opt/web/run.sh. Since yesterday's edit the page does not open.

Run docker commands with sudo: the student user has no direct access to Docker. There is no internet on the machine, and the image is already loaded.

Task

Make it so that:

  1. the web container from the inventory-web:1.0 image is running and not restarting;
  2. curl http://localhost:8080/ gets the status page from the web container;
  3. after the machine reboots, web comes up by itself, as before.

Visible only to you. Saved as you type.

All notes

Lab goals

0 of 3
  • Container web from the inventory-web:1.0 image is running and not restarting — not checked yet
  • Container web serves the status page at http://localhost:8080/ — not checked yet
  • Container web will come up by itself after a reboot — not checked yet

Hints

0 of 3 open · they open one at a time
Hint 1
Show the solution after 3 failed checks

Leave the lab?

The machine keeps running for 10 more minutes, then it is removed. Files are lost; completed goals stay.

Loading…