Docker Logs, Metrics and Disk Space
Logs
In the Containers list, click the logs button on a container, or on a compose project to see all of its services together. You get the most recent lines with timestamps. Logs are rotated automatically on the host, so they never fill your disk.
What each container uses now
The Containers tab shows two bars above the list:
- Memory by container: how much of the host's memory each container uses, and what is free.
- CPU by container: each container's share of the whole host. On a 2 vCPU host, a container using one full core shows as 50%.
They are a snapshot, refreshed with the Refresh button.
History: the Metrics tab
The Metrics tab shows the whole host over the last hour, day, week or month: CPU, memory, network in and out, and disk reads and writes. It also shows your outbound traffic this period against your plan's allowance and the date it resets. Use it to see whether your host is busy enough to need a bigger plan; to move to one, open a support ticket.
Free up disk space
Old image versions pile up as you deploy new ones. The Free up disk space card shows how much space images, containers, volumes and the build cache take.
Clean up unused images removes images that no container uses, plus the build cache. Your containers, running or stopped, and all volumes are kept. A removed image is downloaded again the next time you deploy it.