Docker and CI/CD · Junior · Question 15 of 75

What happens to files written inside a container when you remove it?

Explanation

The writable layer belongs to the container and is deleted with it. Databases and uploads need a volume or bind mount to outlive the container.

Further reading

Problem with a question

Docker and CI/CD · Junior · question 15

Test yourself

Take the Docker and CI/CD · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz