Saturday, January 9, 2021

Usefull commands to manage Docker


  1. Checking Unix process > htop
  2. Docker container resource usage > docker stats
  3. Running containers > docker ps
  4. Clean all unused containers volumes > docker system prune
  5. Check log file size of docker containers > du -chs /var/lib/docker/containers/*/*json.log
  6. Clean log of docker containers without container restart > truncate -s 0 /var/lib/docker/containers/*/*-json.log;


Share Article : Usefull commands to manage Docker
Share/Save/Bookmark

0 comments:

Post a Comment