Docker: Difference between revisions

From Piszczynski
piszczynski>Aleks
(Created page with " == Docker High CPU usage == See what containers are using system resources: *docker stats -all *docker stats --all --format "table {{.ID}}\t{{.Name}}\t{{.CPUPerc}}\t{{.MemUsa...")
 
piszczynski>Aleks
Line 4: Line 4:
*docker stats -all
*docker stats -all
*docker stats --all --format "table {{.ID}}\t{{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}"
*docker stats --all --format "table {{.ID}}\t{{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}"
Check specific container for process:
*docker ps | grep <container id>
Check the logs for high cpu use container:
*docker logs --tail 100 <container Id>

Revision as of 10:40, 2 August 2022

Docker High CPU usage

See what containers are using system resources:

Check specific container for process:

  • docker ps | grep <container id>

Check the logs for high cpu use container:

  • docker logs --tail 100 <container Id>