Monitoring containers

There are a few ways of monitoring the running Docker containers. They includes viewing the log files, looking at the container events and statistics, and also inspecting container properties. Let's begin with the logging. Docker has powerful logging features. An access to the log entries is crucial, especially if you have your container running in the detached runtime mode. Let's see what Docker can offer when it comes to a logging mechanism.

Viewing logs

Most applications output their log entries to the standard stdout stream (normally you just see in in the console when you run the application). However, when running from Docker in detached mode, we see nothing on the console because the container runs in the background. ...

Get Developing with Docker now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.