Giter VIP home page Giter VIP logo

Comments (3)

tarnfeld avatar tarnfeld commented on June 23, 2024

This line will actually use the variable if it's already set, so you can just change your (cron?) entry to set the env var.

GRACE_PERIOD_SECONDS=3600 /path/to/docker-gc

I think that'd work.

from docker-gc.

michel-kraemer avatar michel-kraemer commented on June 23, 2024

Sure. I can do that. I was just thinking that a /etc/default/docker-gc file would probably be a bit more transparent. I don't think it would be much work to add it. I could try to submit a pull request, but I'm super busy with other projects at the moment. Maybe later.

Michel

from docker-gc.

mattnworb avatar mattnworb commented on June 23, 2024

Hey @michel-kraemer as mentioned above you can just set GRACE_PERIOD_SECONDS=whatever when invoking the script. I think we'd prefer to keep the logic to configure via environment variables rather than sourcing a file to be consistent with how other options are set.

from docker-gc.

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.