Skip to content
This repository was archived by the owner on Oct 19, 2022. It is now read-only.

unable to remove bad volume #63

Open
phebous opened this issue Sep 14, 2018 · 1 comment
Open

unable to remove bad volume #63

phebous opened this issue Sep 14, 2018 · 1 comment

Comments

@phebous
Copy link

phebous commented Sep 14, 2018

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?

@maxi-marufo
Copy link

I had the same problem. I've also tried removing the plugin and installing it again, but still the same.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants