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

Can only remove volume after running system prune --volumes #77

Open
sbriels opened this issue Jul 7, 2020 · 0 comments
Open

Can only remove volume after running system prune --volumes #77

sbriels opened this issue Jul 7, 2020 · 0 comments

Comments

@sbriels
Copy link

sbriels commented Jul 7, 2020

After quite some trial and error I noticed I can only remove volumes after I ran "docker sytem prune --volumes". Is this the intended behaviour? If so it would be good to put this in the readme?

Ran steps:

  1. installing the plugin as: docker plugin install --grant-all-permissions vieux/sshfs sshkey.source=/root/.ssh/
  2. setting up public/private key for root (sudo -i , then ssh-keygen -b 4096 -t rsa )
  3. setting up the volume: docker volume create -d vieux/sshfs -o [email protected]:/home/user/ sshvolume
  4. using the volume: docker run -it -v sshvolume:/data ubuntu
  5. removing the volume by "docker volume rm sshvolume" gives "Error response from daemon: remove sshvolume: volume is in use"
  6. run "docker system prune --volumes"
  7. remove by "docker volume rm sshvolume" (succes!)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant