Learning paths / Containers / Persistent storage

Check: storage

Knowledge check · 5 min · Module 7, lesson 5 of 55 min left in this module

Module 7 · Persistent storageLesson 5 of 5

Goal: Confirm you can predict what a container keeps, choose between a volume and a bind mount, and keep data out of the images you push.

Four questions: three on Module 7 and one from Module 5. Every answer explains itself, right or wrong.

A container writes a log file to /tmp/app.log. Which of these deletes it?
While developing, you want a container to serve the HTML files you're editing, without rebuilding after every change. What do you use?
You bind-mount an empty folder from your machine at /app, where your image keeps its code. The container fails with a file-not-found error. Why?
From Module 5: your app keeps uploads on a volume at /data. You push version 1.1.0 of its image to a registry and a server runs it. Are the uploads in the pushed image?

Retry as often as you like.