-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use events to do image cleanup correctly #29
Comments
@bukzor that's what I proposed here: #28 (comment) dcgc already supports a file based exclude list. Whatever writes the events to disk should be able to write just the image names. I don't think |
The logic to take an event stream and decide which images to exclude is what we added to dcgc in #28. The raw data is the event stream, and as such should be written to disk. Also, if we get the list of events after we get the list of images, we eliminate the race wherein we delete a very recently pulled image because we have no events for it. |
I see what you're saying. It still feels a little weird to have So I guess let's do it. |
The file can be stdin in the case that you want to use |
We attempted this work in #28, but it fell through due to the fact that dockerd only saves the last 64 events, which is wholly insufficient for this purpose.
@dnephin: I think we really need this to get total correctness from dcgc.
The only show-stopper is the persistence of docker events; there (essentially) is none.
Can we agree on a scheme wherein we dump the docker events to disk and have dcgc read it?
I imagine we simply define an init daemon like
docker events > /var/log/docker/events.log
and add an--events-log
option to dcgc.The text was updated successfully, but these errors were encountered: