I accidentally created a volume with an illegal character in it (i.e. /) Here is the volume listing:
/# docker volume ls
DRIVER VOLUME NAME
vieux/sshfs:latest /certs
I made sure no container were running and not even present.
/# docker container prune
WARNING! This will remove all stopped containers.
Are you sure you want to continue? [y/N] y
Total reclaimed space: 0B
/# docker volume rm certs
Error: No such volume: certs
/# docker volume rm /certs
Error: No such volume: /certs
/# 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
Total reclaimed space: 0B
/# docker volume ls
DRIVER VOLUME NAME
vieux/sshfs:latest /certs
I am basically at a loss how to delete this volume. I am able to still mount it with this command.
$ docker run -it -v /certs:/mnt alpine /bin/sh
/# ls -la /mnt
total 12
drwxr-xr-x 2 root root 4096 Sep 14 00:39 .
drwxr-xr-x 1 root root 4096 Sep 14 23:12 ..
-rw-r--r-- 1 root root 6 Sep 14 00:39 file
/# exit
Any idea on how to delete the volume with the slash?
I accidentally created a volume with an illegal character in it (i.e. /) Here is the volume listing:
/# docker volume ls DRIVER VOLUME NAME vieux/sshfs:latest /certs
I made sure no container were running and not even present.
/# docker container prune WARNING! This will remove all stopped containers. Are you sure you want to continue? [y/N] y Total reclaimed space: 0B
/# docker volume rm certs Error: No such volume: certs
/# docker volume rm /certs Error: No such volume: /certs
/# 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 Total reclaimed space: 0B
/# docker volume ls DRIVER VOLUME NAME vieux/sshfs:latest /certs
I am basically at a loss how to delete this volume. I am able to still mount it with this command. $ docker run -it -v /certs:/mnt alpine /bin/sh /# ls -la /mnt total 12 drwxr-xr-x 2 root root 4096 Sep 14 00:39 . drwxr-xr-x 1 root root 4096 Sep 14 23:12 .. -rw-r--r-- 1 root root 6 Sep 14 00:39 file /# exit
Any idea on how to delete the volume with the slash?