title: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: no such file or directory: unknown
body: <p>I want to run a docker-compose file but I keep getting</p>
  <blockquote>
  <p>ERROR: for service2  Cannot start service service2: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: &quot;./wait.sh&quot;: stat ./wait.sh: no such file or directory: unknown</p>
  </blockquote>
  <p>and my docker-compose file is</p>
  <pre><code>version: &quot;3&quot;
  services:
    service1:
      restart: always
      container_name: service1
      build: ./service1
      environment:
        - POSTGRES_DB
        - POSTGRES_USER
        - POSTGRES_PASSWORD
  
    service2:
      container_name: service2
      build: ./service2
      environment:
        - POSTGRES_DB
        - POSTGRES_USER
        - POSTGRES_PASSWORD
      depends_on:
        - service1
      restart: &quot;no&quot;
      volumes:
        - ./data.csv:/data.csv
      command: [&quot;./wait.sh&quot;, &quot;service1:5432&quot;, &quot;--&quot;, &quot;python&quot;, &quot;./service2.py&quot;]
  </code></pre>
  <p>but if I go and try to build <em>Dockerfile</em> for service2 everything is ok and I can run <em>wait.sh</em>.
  Here's Dockerfile for service2:</p>
  <pre><code>FROM python:latest
  WORKDIR /service2
  RUN pip install psycopg2==2.8.6
  COPY ./service2.py .
  COPY ./wait.sh ./wait.sh
  RUN chmod +x ./wait.sh
  </code></pre>
  <p>I completely don't get what's wrong especially because when I first ran <code>docker-compose up</code> the same error occured. But after that error did not occur for several times I ran <code>docker-compose up</code> and now again it doesn't work though I run the same docker-compose file.</p>
  <p><em>wait.sh</em> was taken from <a href="https://github.com/vishnubob/wait-for-it" rel="nofollow noreferrer">here</a></p>
  <p><em>service2.py</em> connects to db and writes from <em>data.scv</em> but since it doesn't even run that should not be the problem.</p>