Git Product home page Git Product logo

Comments (4)

mikljohansson avatar mikljohansson commented on May 18, 2024

Not sure I entirely follow you, do you means that it removes containers
that are in the process of restarting?

We'd be most happy to accept PRs for additional logging and some filtering
for restart=always containers.

Perhaps it might be difficult to implement in bash in case docker inspect
needs to be used. We've been considering adding container cleanup to the
new golang version of tutum/image-cleanup, whose original shell script
docker-cleanup is copied from.
On 22 Jun 2015 22:40, "TJ Holowaychuk" [email protected] wrote:

seems that if you use --restart=always it'll start removing others that
haven't restarted yet, some extra info in the logs would be nice too right
now there's just the id so it's hard to see what happened


Reply to this email directly or view it on GitHub
#2.

from docker-cleanup.

tj avatar tj commented on May 18, 2024

Yeah that seems to be the case, usually it takes out one or two that we have as restart=always. A Go version would be great, if I can get some time I'll try and help out there!

from docker-cleanup.

mikljohansson avatar mikljohansson commented on May 18, 2024

Have you looked into tutumcloud/cleanup? Perhaps it can fill your usecase,
its a golang version of docker-cleanup. Difference is that it doesn't
remove exited containers.

https://github.com/tutumcloud/cleanup

I've been considering trying to add exited-container cleanup to it and
scrapping this bash script. We're also not using restart=always, instead
relying on systemd or Marathon to restart services. This unfortunately also
means that it's unlikely we'd spend significant time adding explicit
handling for restart=always containers.

However we'd be happy to accept a PR if it's not complex, otherwise perhaps
adding it to tutumcloud/cleanup may be a better option.
On 23 Jun 2015 16:45, "TJ Holowaychuk" [email protected] wrote:

Yeah that seems to be the case, usually it takes out one or two that we
have as restart=always. A Go version would be great, if I can get some time
I'll try and help out there!


Reply to this email directly or view it on GitHub
#2 (comment)
.

from docker-cleanup.

tj avatar tj commented on May 18, 2024

fair enough! I will take a look

from docker-cleanup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.