Code Monkey home page Code Monkey logo

Comments (2)

cr7pt0gr4ph7 avatar cr7pt0gr4ph7 commented on July 17, 2024

This is less of a problem of Upstart, and more one of Docker itself.

Because open ports can only be specified with docker run, and cannot be changed afterwards (one could argue that this is "by design" for Docker), changing the configuration of a container requires removing the container, and start a new container.
Just docker restarting a container does not suffice.

The problem with this is that the container might contain data the user wants to keep, but which would be lost when doing docker rm on the container. Some container can safely be deleted and rerun (consider a Skydock container that contains an immutable configuraiton), other containers should only be removed if the user explicitly requests to do so.

Proposed fix: Add a parameter to docker::run which allows the user to specify whether containers should be temporary (i.e. removed on initctl stop) or permanent. Would it be possible to use --rm parameter of docker run. Additionally, one could define an additional action for the init scripts to explicitly remove and rerun the container (Is this possible for Upstart?).

Update: According to the the Upstart Documentation calling initctl restart <jobname> does not reload a jobs config from disk.

from garethr-docker.

garethr avatar garethr commented on July 17, 2024

We've now changed over to sysv from docker run which should avoid this issue and a few other init related problems.

from garethr-docker.

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.