Code Monkey home page Code Monkey logo

Comments (6)

l3iggs avatar l3iggs commented on July 23, 2024

Isn't this dependent on the host?

from docker-owncloud.

sils avatar sils commented on July 23, 2024

I think you can just do --restart='always' if your docker service is started at startup, that however is indeed host dependent and also usually given.

from docker-owncloud.

l3iggs avatar l3iggs commented on July 23, 2024

I've never actually tried this, but this page makes it seem more complicated than that.

from docker-owncloud.

sils avatar sils commented on July 23, 2024

As of Docker 1.2, restart policies are the built-in Docker mechanism for restarting containers when they exit. If set, restart policies will be used when the Docker daemon starts up, as typically happens after a system boot. Restart policies will ensure that linked containers are started in the correct order.

If restart policies don't suit your needs (i.e., you have non-Docker processes that depend on Docker containers), you can use a process manager like upstart, systemd or supervisor instead.

how about https://docs.docker.com/reference/commandline/cli/#restart-policies

from docker-owncloud.

l3iggs avatar l3iggs commented on July 23, 2024

systemd starts the docker service on boot on all my machines. I'll test the --restart='always' switch to see if that brings the container up at boot.

from docker-owncloud.

l3iggs avatar l3iggs commented on July 23, 2024

Nice!
Added to the documentation: https://github.com/l3iggs/docker-owncloud/wiki/Ensure-your-ownCloud-server-is-always-running

from docker-owncloud.

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.