DEV Community

PanupongDeve
PanupongDeve

Posted on

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

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay