Docker and CI/CD · Senior · Question 4 of 75

Why can appending one line to a 2 GB file in a container be slow?

Explanation

Copy-up happens on the first write to a file from a lower layer. Write-heavy data (databases, logs) belongs in volumes, which bypass the storage driver.

Further reading

Problem with a question

Docker and CI/CD · Senior · question 4

Test yourself

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

Take this quiz