docker volume prune -y code example
Example 1: prune volume docker
$ docker volume prune
WARNING! This will remove all volumes not used by at least one container.
Are you sure you want to continue? [y/N] y
Example 2: reuse docker volume
# Reuse a volume from another docker container with `docker run --volumes-from my-other-container ...`