title: Why the docker-compose.yml file is not working on Windows 10? But the same file can work on Mac
body: <ul>
  <li>docker version (MacOS)</li>
  </ul>
  
  <pre><code>Client: Docker Engine - Community
   Version:           18.09.2
   API version:       1.39
   Go version:        go1.10.8
   Git commit:        6247962
   Built:             Sun Feb 10 04:12:39 2019
   OS/Arch:           darwin/amd64
   Experimental:      false
  
  Server: Docker Engine - Community
   Engine:
    Version:          18.09.2
    API version:      1.39 (minimum version 1.12)
    Go version:       go1.10.6
    Git commit:       6247962
    Built:            Sun Feb 10 04:13:06 2019
    OS/Arch:          linux/amd64
    Experimental:     false
  </code></pre>
  
  <ul>
  <li>docker version (Win 10)</li>
  </ul>
  
  <pre><code>Client:
   Version:           18.03.0-ce
   API version:       go1.9.4
   git commit:             Sun Feb 10 04:12:39 2019
   OS/Arch:           falsews/amd64
   Orchestrator:      swarm
  
  Server: Docker Engine - Community
   Engine:
    Version:          18.09.6
    API version:      go1.10.8inimum version 1.12)
    Git commit:       6247962
    Built:            Sun Feb 10 04:13:06 2019
    OS/Arch:          false/amd64
    Experimental:     
  </code></pre>
  
  <ul>
  <li>docker-compose.yml</li>
  </ul>
  
  <pre><code>version: "3"
  
  services:
  
      web:
          image: acc:v1
          container_name: web
          # privileged: true
          ports:
              - "9090:8000"
          links:
              - db
          depends_on:
              - db
          volumes:
              - ./code/:/usr/src/app/web/
          networks:
              - account
          restart: always
          command: bash -c "tail -f /dev/null"
  
      db:
          image: db:v1
          # privileged: true
          ports:
              - "9906:3306"
          container_name: db
          environment:
              - MYSQL_ROOT_PASSWORD=my
          restart: unless-stopped
          networks:
              - account
  
      nginx:
          image: nn:v1.1
          # privileged: true
          ports:
              - "8082:80"
              - "8083:8080"
          container_name: nginx
          restart: unless-stopped
          depends_on:
              - web
          links:
              - web
          volumes:
              - ./nginx/:/root/html/
          networks:
              - account
  
  networks:
      account:
          driver: bridge
  
  </code></pre>
  
  <ul>
  <li>MacOS is ok.</li>
  </ul>
  
  <pre class="lang-sh prettyprint-override"><code>$ docker-compose up -d
  </code></pre>
  
  <ul>
  <li>Win 10 is not.
  
  <ol>
  <li>step one</li>
  </ol></li>
  </ul>
  
  <pre class="lang-sh prettyprint-override"><code>$ docker-compose up -d
  error: can't create..: No command specified. 
  </code></pre>
  
  <ol start="2">
  <li>step two
  ==> add command in .yml file</li>
  </ol>
  
  <pre><code>...
          networks:
              - account
          command: /bin/bash
  ...
  </code></pre>
  
  <pre class="lang-sh prettyprint-override"><code>error: OCI runtime create failed:..(345):starting container process caused "exec : /bin/bash":stat /bin/bash: No such file or directory: unknow.
  </code></pre>
  
  <ol start="3">
  <li>step three
  ==> alter command
  
  <ul>
  <li>I tried sh | /bin/bash | /bin/sh | ls | /bin/ls | and so on.</li>
  </ul></li>
  </ol>
  
  <p>It is so weird.
  I want to run the containers with the docker-compose.yml file on Windows 10.</p>