Coder Social home page Coder Social logo

Comments (5)

arriven avatar arriven commented on July 23, 2024 1

I don't think this is something I can fix on my end. This is just the way docker works (it keeps all the older versions of images even if you don't use those). You can clean the system up by using docker system prune periodically which should remove unused data. Depending on your setup you can opt into running that command periodically with some cron or run it on every deploy but usually running that once in a while is enough

I'm also working on a side project that will allow using single image to run and auto-update db1000n in different environments (including containers) but it's not ready yet

from db1000n.

arriven avatar arriven commented on July 23, 2024 1

As for updates: docker tracks the container lifetime by existance of the process with PID 1. Any kind of version update requires to restart the process in order to update the code and the new process won't get the same id as old one. In order to get around that you need to use some external process as the controller and that's what I'm planning to do

from db1000n.

MetaMmodern avatar MetaMmodern commented on July 23, 2024

in different environments

@arriven what do you mean by this? Sounds cool, however AFAIK it's already possible to update db1000n without killing the container.

Forgot to say: thank you for the hint with prune)
But maybe there is a way to minimize the layer sizes that changes on every code update. I will try to investigate it in a week or two.

from db1000n.

arriven avatar arriven commented on July 23, 2024

AFAIR, the only layer that changes between versions is the one where the executable resides and I doubt it'll be possible to cache that

from db1000n.

MetaMmodern avatar MetaMmodern commented on July 23, 2024

Okay, I'll close this for how then. Thank you

from db1000n.

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.