If the docker-sync's volume are still attached to a containers (even stooped), it will not remove those volume:
โ git:(dev) โ docker-sync clean
Error response from daemon: No such container: code-sync
Error response from daemon: No such container: code-sync
Error response from daemon: Unable to remove volume, volume still in use: remove code-sync:
volume is in use - [0bf8bf2d470b484fd736cd245134bf75e294bd5eb664625688f649a57d54533c,
a266be7316732935631a3abc834cdf58e438385ff8fd6f201237a23a19a18109]
success Finished cleanup. Removed stopped, removed sync container and removed there volumes
I guess this is a safeguard, but what are the use cases as you should still have your files on your local file system.
Perhaps we can add a --force flag. Or a confirmation dialogue can be the default behavior:
โ git:(dev) โ docker-sync clean --force
Volume still in use - [0bf8bf2d470b484fd736cd245134bf75e294bd5eb664625688f649a57d54533c,
a266be7316732935631a3abc834cdf58e438385ff8fd6f201237a23a19a18109]
Are you sure you want to delete those volume (y/n):