How to clean disk from container running

panupongdeve

DevOpsCloudCloud

Posted on November 19, 2024

How to clean disk from container running
  1. remove container logs
    sudo sh -c "truncate -s 0 /var/lib/docker/containers/*/-json.log"

  2. remove containers component unused
    docker system prune -a

💖 💪 🙅 🚩
panupongdeve
DevOpsCloudCloud

Posted on November 19, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Docker
docker Docker

November 27, 2024

Containerization and Docker
undefined Containerization and Docker

November 27, 2024