Where to start First steps track · 15 stages
Linux Labs

Containers: Docker and compose

Quiz: images and data

Question 1 of 10
Leave the quiz

Why an edit did not reach the container, which build steps docker takes from the cache and what a tag means; where a container's process writes, what survives re-creation and why host directory files will not open. The questions follow the lessons “Dockerfile: your own image” and “Volumes: data outlives the container”.

10 questions · threshold 70%

Read the output

The RUN line in the Dockerfile did not change. Why did docker run it again?

$ sudo docker build -t site:3 .
#6 [2/4] WORKDIR /www
#6 CACHED
#7 [3/4] COPY index.html .
#7 DONE 0.1s
#8 [4/4] RUN date -u '+%F %T' > built.txt
#8 DONE 0.4s
A–D or ↵ Sign in to answer
Loading…