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)

Image of Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free

Retry later