Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
DevOps and cloud
/
Docker
Which choice preserves database data when its container is replaced?
from Docker
Docker CLI 29.7.2 / Compose 5.5.0 / Node 24
beginner
1 min
Which choice preserves database data when its container is replaced?
Mount a named volume at the database data directory.
Write to the container writable layer and use restart: always.
Declare the data directory with EXPOSE.
Run docker compose down -v before every restart.
Check
Ask AI about this kata
Report an error
previous kata
Which statement correctly distinguishes an image from a container?
Quiz
next kata
What does this image-reference inspection print?
Predict the output
A new version is available
Reload