Docker and CI/CD · Middle · Question 22 of 75

Why should containers log to stdout and stderr?

Explanation

Log files inside a container fill its writable layer and vanish with it. Twelve-factor apps treat logs as event streams; the platform ships them to a log store.

Further reading

Problem with a question

Docker and CI/CD · Middle · question 22

Test yourself

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

Take this quiz