Forrest logo
back to the docker tool

docker:tldr:91514

docker: Disable streaming stats and only pull the current stats.
$ docker stats --no-stream
try on your machine

The command "docker stats --no-stream" is used to display live statistics of the running Docker containers.

When you execute "docker stats", by default, it continuously streams the live statistics, updating them in real-time. However, by appending "--no-stream" to the command, you disable the automatic updating of stats and display a single snapshot of statistics, rather than continuously updating them.

This can be useful in scenarios where you only want to get a one-time overview of the container's resource usage, instead of monitoring it continuously. The displayed statistics typically include CPU usage, memory usage, and network I/O for each running container.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the docker tool