docker volume prune


Remove all unused local volumes

API 1.25+  The client and daemon API must both be at least 1.25 to use this command. Use the docker version command on the client to check your client and daemon API versions.


$ docker volume prune [OPTIONS]

Extended description

Remove all unused local volumes. Unused local volumes are those which are not referenced by any containers

For example uses of this command, refer to the examples section below.


Name, shorthand Default Description
--filter Provide filter values (e.g. 'label=<label>')
--force , -f Do not prompt for confirmation


$ docker volume prune

WARNING! This will remove all local volumes not used by at least one container.
Are you sure you want to continue? [y/N] y
Deleted Volumes:

Total reclaimed space: 36 B

Parent command

Command Description
docker volume Manage volumes
Command Description
docker volume create Create a volume
docker volume inspect Display detailed information on one or more volumes
docker volume ls List volumes
docker volume prune Remove all unused local volumes
docker volume rm Remove one or more volumes