title: docker compose not finding file in gitlab job
body: <p>I'm running a <code>gitlab-ci.yml</code> job with a <code>gitlab-runner</code> which is using the <code>docker</code> executor with the <code>docker.sock</code> mounted from the host (set in the config file).</p>
  
  <p>docker composes run.sh file located here: <a href="https://github.com/docker/compose/blob/master/script/run/run.sh" rel="nofollow noreferrer">https://github.com/docker/compose/blob/master/script/run/run.sh</a> doesn't seem to find the <code>docker-compose.lint.yml</code> file I need it to run.</p>
  
  <p>Part of the <code>gitlab-ci.yml</code> file:</p>
  
  <pre><code>Lint from image:
    &lt;&lt;: *temp
    stage: Lint
    script:
      - ls -a
      - cat docker-compose.lint.yml
      - . docker-compose_run.sh -f docker-compose.lint.yml up --remove-orphans --force-recreate --abort-on-container-exit
  </code></pre>
  
  <p>Dockerfile of the image that the <code>gitlab-ci.yml</code> file is using:</p>
  
  <pre><code>FROM debian:stretch
  
  # Set Bash as default shell
  RUN rm /bin/sh &amp;&amp; \
      ln --symbolic /bin/bash /bin/sh
  
      # apt-get
  RUN apt-get update &amp;&amp; \
      apt-get install -y \
      # Install SSH
      openssh-client \
      openssh-server \
      openssl \
      # Install cURL
      curl \
      # Install git
      git \
      # Install locales
      locales \
      # Install Python
      python3 \
      python-dev \
      python3-pip \
      # Build stuff
      build-essential \
      libssl-dev \
      libffi-dev \
      apt-transport-https \
      ca-certificates \
      curl \
      gnupg2 \
      software-properties-common
  
  # Install Docker
      # Add Docker’s official GPG key
  RUN curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | apt-key add - &amp;&amp; \
      # Set up the stable repository
      add-apt-repository \
     "deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \
     $(lsb_release -cs) \
     stable" &amp;&amp; \
      # Update package index
      apt-get update &amp;&amp; \
      # Install Docker CE
      apt-get install -y docker-ce
  
      # pip
  RUN pip3 install \
      # Install Docker Compose
      docker-compose
  
  # Set locale
  RUN sed --in-place '/en_US.UTF-8/s/^# //' /etc/locale.gen &amp;&amp; \
      locale-gen &amp;&amp; \
      # Set system locale (add line)
      echo "export LANG=en_US.UTF-8" &gt;&gt; /etc/profile &amp;&amp; \
      # Set system timezone (add line)
      echo "export TZ=UTC" &gt;&gt; /etc/profile
  </code></pre>
  
  <p>Job output:</p>
  
  <pre><code>...more stuff above here
  $ ls -a
  .
  ..
  .clocignore
  .dockerignore
  .eslintignore
  .eslintrc.json
  .git
  .gitignore
  .gitlab-ci.yml
  .nvmrc
  .nyc_output
  Dockerfile
  README.md
  __.gitlab-ci.yml
  bin
  build.sh
  build_and_test.sh
  coverage
  docker-compose.lint.yml
  docker-compose.test.yml
  docker-compose_run.sh
  lib
  package-lock.json
  package.json
  stop.sh
  test
  test.sh
  wait-for-vertica.sh
  $ cat docker-compose.lint.yml
  version: "3"
  
  services:
    ei:
      image: lint:1
      environment:
        - NODE_ENV=test
      entrypoint: ["npm", "run", "lint"]
  $ . docker-compose_run.sh -f docker-compose.lint.yml up --remove-orphans --force-recreate --abort-on-container-exit
  .IOError: [Errno 2] No such file or directory: u'./docker-compose.lint.yml'
  ERROR: Job failed: exit code 1
  </code></pre>