title: Docker compose error: compose.cli.main.main: Container command could not be invoked
body: <p>I am trying to run haproxy in a docker container. To build and run the haproxy from the image, docker-compose reads my .yaml file below.</p>
  
  <pre><code>proxy:
      build: ./
      env_file: .env
      ports:
      - "8000:80"
      - "9000:9000"
  </code></pre>
  
  <p>After executing a docker-compose build, the image is created but while trying to spawn a container using the following, I am getting the following errors:</p>
  
  <pre><code>$ docker-compose up -d
  Starting my_haproxy_container
  ←[31mERROR←[0m: Container command could not be invoked.
  </code></pre>
  
  <p>By docker install information:</p>
  
  <pre><code>$ docker version
  Client:
   Version:      1.10.2
   API version:  1.22
   Go version:   go1.5.3
   Git commit:   c3959b1
   Built:        Mon Feb 22 22:37:33 2016
   OS/Arch:      windows/amd64
  
  Server:
   Version:      1.10.3
   API version:  1.22
   Go version:   go1.5.3
   Git commit:   20f81dd
   Built:        Thu Mar 10 21:49:11 2016
   OS/Arch:      linux/amd64
  </code></pre>
  
  <p>I am not sure why the <code>docker-compose up -d</code> is unable to bring up the container. Any information is much appreciated. Thank you.</p>