Docker diagnostic commands

Docker system command

Get real time events of the Docker server :
docker system events
Helpful flags :
--since string : show all events created since timestamp
--until string : stream events until this timestamp

Show docker disk usage (for images,containers,volumes and build cache):
docker system df
Helpful flags :
-v : verbose

Display system-wide information:
docker system info

Other diagnostic commands

Show containers and their total file sizes (beware : it consumes IO) :
docker container ls --size or simply : docker ps --size

Other diagnostic commands

Show the log size of each container :
docker ps|cut -f1 -d " " | tail -n +2 | awk '{system("docker inspect " $1 " --format='{{.LogPath}}'")}' | xargs du -sh {}

Ce contenu a été publié dans Non classé. Vous pouvez le mettre en favoris avec ce permalien.

Laisser un commentaire

Votre adresse de messagerie ne sera pas publiée. Les champs obligatoires sont indiqués avec *