-
Notifications
You must be signed in to change notification settings - Fork 95
Docker volume cannot be deleted even though no containers are running. #1202
Comments
Could you please share the plugin logs? It will help to debug the inconsistent ref counting. Meanwhile here is the work around with steps
|
Here is the log file for the plugin. The supplied workaround did not work. Please note I am just trying to delete the volume. I'm not certain why the busybox container mounted to the volume is necessary but it isn't working. |
Thank you for sharing this. From the logs, what we can understand is: Then we see 2 back-to-back mount requests for same volume indicating Docker started 2 containers using same volume (yes?).
Followed by Unmount-Mount-Unmount-Mount-Unmount. At the end leaving refcount to 1. This indicates there must be one container still running and using the volume and thus plugin didn’t allow remove operation.So, either there is a container still using the volume or we will have to investigate why Docker didn’t send Unmount. Is it possible to share docker as well as ESX logs? See How . Did you try busybox command after restarting Plugin? This workaround was for;
|
It is mounted consecutively like you see in the logs. However, there is no container left running. I'll work on retrieving logs. If you'd like to WebEx, I'm available for the remainder of the day. |
This seems like a Docker issue 32907 |
Docker has fix out for review #32909 to fix this issue. |
Docker 17.06.0 will have the fix. |
I've just installed the latest plugin and successfully created a volume using it. There are no containers running in the environment which are using the volume. When I try to remove it using the standard docker volume rm command, I receive the following error:
If I try to force the removal, the command returns the volume name indicating it ran successfully. However, the volume is still present.
The plugin log contains the following output when I try and remove the volume:
Here is a volume inspect of this volume:
The text was updated successfully, but these errors were encountered: