Docker container disaster recovery

I’m trying to run a service that does cron tasks using celery and it is very critical for our business. That certain container that runs the celery sometimes exits unexpectedly and I’m not being notified of the exit as well.

I have two questions:

  • How to use MariaDB in Docker?
  • Errors with alpine linux 3.5 and ruby 2.0?
  • Setting up X11 display: One application works while other one don't
  • Containerization of OpenStack services with Kubernetes?
  • how to add --auth for mongodb image when using docker-compose?
  • How can I update full description on Docker Hub automatically?
    • How can I be notified via e-mail if one of my container exits?
    • How to do a disaster recovery for example if that container exits or stops another container will start and continue the process of that exited container

  • Docker Swarm with etcd
  • Using REST API to deploy Liberty Docker containers
  • Connect to mongodb on centos7 docker image
  • Storing local docker images on External HDD boot2docker
  • Dockerfile how to add localhost alias
  • Docker exposed port unreachable
  • One Solution collect form web for “Docker container disaster recovery”

    you can start the docker container with the parameter:

    --restart="always"
    

    for example:

    docker run --restart="always" <IMAGE>
    

    for your first Q i would suggest to look into that link:

    How to programmatically monitor if a docker container exited?

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.