How will you monitor Docker in production?

Technology CommunityCategory: DockerHow will you monitor Docker in production?
VietMX Staff asked 3 years ago

Docker provides tools like docker stats and docker events to monitor Docker in production. We can get reports on important statistics with these commands.

  • Docker stats: When we call docker stats with a container id, we get the CPU, memory usage etc of a container. It is similar to top command in Linux.
  • Docker events: Docker events are a command to see the stream of activities that are going on in Docker daemon.

Some of the common Docker events are: attach, commit, die, detach, rename, destroy etc. We can also use various options to limit or filter the events that we are interested in.