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

How do you read the output of a running container?

Explanation

Docker captures the container's stdout and stderr. Add -f to follow and --tail 100 for recent lines. That's why apps in containers should log to stdout.

Further reading

Problem with a question

Docker and CI/CD · Junior · question 12

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