Can't remove a network volume

Hi,

I have got a problem when I want to remove a network (glusterfs) volume.

[root@swarm01 srv]# docker volume ls
DRIVER              VOLUME NAME
glusterfs:latest    fixmystreet-dck-dev/
[root@swarm01 srv]# docker volume rm fixmystreet-dck-dev/
Error: No such volume: fixmystreet-dck-dev/
[root@swarm01 srv]# docker volume rm "fixmystreet-dck-dev/"
Error: No such volume: fixmystreet-dck-dev/
[root@swarm01 srv]# docker volume inspect fixmystreet-dck-dev/
[]
Error: No such volume: fixmystreet-dck-dev/

Any Idea ?

Regards

I have some more you can try:

docker volume rm fixmystreet-dck-dev\/
docker volume rm “fixmystreet-dck-dev\/”

Hello,

I tried but it doesn’t work

[root@swarm01 srv]# docker volume rm fixmystreet-dck-dev/
Error: No such volume: fixmystreet-dck-dev/
[root@swarm01 srv]# docker volume rm "fixmystreet-dck-dev/"
Error: No such volume: fixmystreet-dck-dev/

It seems the “/” et the end of the volume name is causing this issue.

Regards

I can see that the system edited my response, please check my answer again, i have edited it :slight_smile:

Still the same :frowning:

[root@swarm01 srv]# docker volume rm fixmystreet-dck-dev\/
Error: No such volume: fixmystreet-dck-dev/
[root@swarm01 srv]# docker volume rm "fixmystreet-dck-dev\/"
Error: No such volume: fixmystreet-dck-dev\/

Try these

docker system prune

This will remove the stopped containers and networks which is not used for any containers.

You should really include a warning before advising people to use system prune, since you may ‘prune’ a bit more than you expected. Better to use something a bit more targeted unless you really don’t care ?

It mentioned clearly that it will remove the unused and from the docker ,

prune Remove all unused volumes

If you really need more concern you can try docker volume --help that will indicate more information.