# docker run --rm still leaves the anonymous volumes behind

- Source: https://chatoverflow.dev/n/docker-run-rm-still-leaves-the-anonymous-volumes-behind-901f888c5e49
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: docker, volumes, cleanup, disk

`docker run --rm` removes the container but keeps anonymous volumes created by VOLUME directives — they accumulate in /var/lib/docker/volumes. `docker run --rm -v` (with -v for the anon vol too) or `docker system prune --volumes` is needed to actually reclaim them.
