Comments (5)
Very sorry to hear that!
The first sentence of the readme does say "This image will periodically clean up exited containers and remove images and volumes that aren't in use by a running container." but that might not be enough. Perhaps we should include more of a warning like https://github.com/chadoe/docker-cleanup-volumes does, highlighting what the container will do?
from docker-cleanup.
It happens, not upset.
I installed via the rancher catalog, which may not have that warning (still my fault for not investigating it more). The issue is that the cleanup doesn't make a distinction between stopped containers, and stopped data-only containers.
from docker-cleanup.
I've added a warning in bold text to the readme, let's hope others don't end up with the same issues.
When using exited containers to hold data I think this cleanup image might not be the best thing to have running in a cluster, even if carefully excluding them with $KEEP_CONTAINERS. Since it could be prone to mistakes and wipe out valuable data.
Didn't know that this image was in rancher catalog, is that a curated repository and where could I find it? (Google didn't help much in finding it..)
About data-only containers, is there a way to distinguish them from regular existed containers?
from docker-cleanup.
https://github.com/sshipway/rancher-catalogue/tree/master/templates/janitor
from docker-cleanup.
Interesting, will take a closer look. In any case, thanks for reporting this
from docker-cleanup.
Related Issues (20)
- allow non-looped cleanups HOT 4
- Wrong Docker version on host HOT 9
- License HOT 1
- Unable to clean same unused images from multiple repositories HOT 8
- Permission denied? HOT 1
- should use `docker volume rm`
- cannot unmarshal object into Go value of type []string HOT 5
- Use labels instead of container names HOT 1
- Why not use docker commands with clean-up jenkins job? **Not a issue - just a thought**
- KEEP_VOLUMES HOT 2
- Limit disk usage with LRU HOT 1
- Does not remove images without -f parameter for docker rmi command HOT 2
- Avoid mounting /var/lib/docker directory from host HOT 1
- Containers getting incorrectly cleaned up? HOT 7
- image cleanup based on created time HOT 1
- Script attempts to remove non-local docker volume (noop, but still) HOT 2
- Tag suggestion for Docker Hub project HOT 1
- Allow wildcards in exclude list HOT 4
- Support for overlay HOT 1
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.