Comments (4)
BTW I may have time to implement, but want your thoughts on the matter first.
from docker-cleanup-volumes.
-
Thanks for this script - most useful
-
Absolutely this should be run as --dryrun by default, which is the first thing I did as we run in a multi-user environment.
This is my version. It adds an --action parameter replacing --dryrun and a --help parameter
Also there's a couple of text clean-ups and enhancements.
If you like I'll pull the code add this in and update the README.md as well.
Enjoy
from docker-cleanup-volumes.
+1
from docker-cleanup-volumes.
Sorry but I'm not going to change the default behavior. Too many systems already depend on it to just run as is. Besides that I don't think dry-run should be the default action. It would be like rm file
would require an additional parameter to actually delete a file or docker rm container
to require an additional parameter to delete a container.
Also the script is pretty much obsolete since Docker has built-in volume management since version 1.9.
from docker-cleanup-volumes.
Related Issues (17)
- Doesn't work with non-default dockerdir HOT 4
- it seems to delete all volumes, not just orphaned HOT 2
- Using docker binary from host through volume HOT 1
- Deleted all non-orphaned volumes HOT 3
- Deletes volumes if dockerdir is a symlink
- Will it delete data only container volumes? HOT 1
- Use `find` instead of `ls -d` to avoid `-bash: /bin/ls: Argument list too long` HOT 2
- Running from toolbox on mac, delete a volume that it is in use. HOT 1
- Support for 1.8.3
- erasing running container volumes centos6 + docker 1.4.1 HOT 3
- you don't NEED to be root HOT 1
- If you get "recursive directory loop", you might have to just delete the volume
- Question about OSX HOT 1
- Template parsing error HOT 3
- Deletes bind-mount volumes that are still in use HOT 4
- syntax error when using the file stand lone HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-cleanup-volumes.