docker-compose restart always not issuing run command

I am somewhat new to docker-compose and am having trouble with understanding the restart option. I have a container that runs a service talking to Jira, sometimes the container will go down for a variety of reasons. I figured that adding

restart: always

would cause the container to restart and run the command, however it restarts but never runs the compose command. Here is my docker-compose.yml

  • Start Docker Daemon as other user
  • Install swagger-ui error
  • How to reach the service running in docker container(overlay) externally from different hosts
  • How can I use gitlab and/or docker for my web app?
  • How to run protractor on docker?
  • How do I configure a Flask app inside a Docker container to parse a large MessagePack object?
  • jira_service:
      container_name: jira_service
      hostname: jira_service
      working_dir: /auto_build
        file: ./auto_build/common.yml
        service: auto_build
      command: bash -c "python && python"
        - db
      restart: always
        - log_data

    The documentation for this option is seriously lacking, I am running docker 1.9.1 and docker-compose 1.5.2. Has anyone had success with this?


    It may be helpful to include the dockerfile that this is being run and built on:

    FROM python:3.4
    ADD . /auto_build
    WORKDIR /auto_build
    RUN apt-get update
    RUN apt-get install -y unixodbc-dev unixodbc odbc-postgresql
    RUN apt-get install -y python-psycopg2
    RUN pip install -r requirements.txt
    RUN apt-get install -y git

  • Docker container hosting
  • Adding additional docker node to Shipyard
  • How to provide certificates to mongod containers on different nodes in swarm cluster for internal authentication?
  • aws ecs 403 error to login private registry
  • TensorFlow docker dev workflow on mac
  • How to run Python Scripts on Mac Terminal using Docker with Tensorflow?
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.