Troubleshooting docker containers performance issues
Few great docker commands which will assist you identifying container performance related issues
Detecting container with high I/O:
docker stats --format "table {{.Container}}\t{{.BlockIO}}" --no-stream --no-trunc
CONTAINER BLOCK I/O
1ab70b91f391 0B / 0B
ce9486919857 0B / 0B
46d3a905228b 0B / 16.4kB
a742191c8b2d 0B / 0B
64dcf7fe621c 81.9kB / 90.1kB
20b819a4ddad 0B / 0B
963164e64cad 1.96MB / 90.1kB
d6ace663551d 0B / 0B
c67cde223838 508kB / 115MB
c7ec7c0894c1 0B / 0B
3b90501ae86e 827kB / 82.4MB
93ec638b102b 0B / 0B
d11ece00d115 99.5MB / 0B
097a7663fb7f 737GB / 0B
2147032306e3 0B / 0B
7a98efcd3bbd 0B / 0B
7d6fe21a92d0 110MB / 180kB
f9dba3b6d8f1 17.7MB / 0B
57e198759f5f 75.6MB / 0B
6285c2b810d9 0B / 0B
825ea1be897b 1.29MB / 0B
d5896cdf9a15 24.1MB / 8.19kB
8dc213c96094 43.9MB / 598kB
dd851b45bb0d 13.4MB / 0B
Finding more info about container (like CPU, memory usage and more):
docker stats 097a7663fb7f --format "table {{.Container}}\t{{.BlockIO}}\t{{.CPUPerc}}\t{{.MemPerc}}\t{{.MemUsage}}" --no-stream
CONTAINER BLOCK I/O CPU % MEM % MEM USAGE / LIMIT
097a7663fb7f 737GB / 0B 0.52% 93.50% 187MiB / 200MiB