logoalt Hacker News

newsofthedaytoday at 2:45 PM1 replyview on HN

The article says to regularly run prune, how regularly? Currently I run the following once per day from cron:

    docker system prune -a -f
    docker volume prune -a -f

Replies

arnitdotoday at 2:53 PM

From the docs, you can just run `docker system prune -a --volumes`

Ref: https://docs.docker.com/reference/cli/docker/system/prune/