Containers: Docker and compose / Stage 2 of 11 · step 6 of 8
Container won't start
Not running
Starting
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:
- the
webcontainer from theinventory-web:1.0image is running and not restarting; curl http://localhost:8080/gets the status page from thewebcontainer;- after the machine reboots,
webcomes up by itself, as before.
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