Containers: Docker and compose / Stage 4 of 11 · step 6 of 7
A new image version
Not running
Starting
Situation
The team's status page runs in the app container on port 8080: this is version 1.0,
the app:1.0 image. A developer prepared version 1.1: its files and Dockerfile are in
~/app. He did not get to build the image — the build kept failing for him.
Run docker commands with sudo: the student user has no direct access to Docker. There
is no internet on the machine, and the busybox image is already loaded.
Task
- The
app:1.1image is built from the~/appdirectory:sudo docker build ~/appsucceeds and gives an image with the same layers. - Container
appruns from theapp:1.1image and is not restarting. curl http://localhost:8080/gets the version 1.1 page from containerapp.
Lab goals
0 of 3-
The app:1.1 image is built from ~/app — building that directory gives an image with the same layers — not checked yet
-
Container app runs from the app:1.1 image and is not restarting — not checked yet
-
http://localhost:8080/ serves the version 1.1 page from container app — not checked yet
Hints
0 of 3 open · they open one at a time
Hint 1
Show the solution
after 3 failed checks