title: Gitlab-runner with syntax error
body: <p>I recently used the docker image <a href="https://hub.docker.com/r/gitlab/gitlab-runner/" rel="noreferrer">gitlab/gitlab-runner:9.1.0</a> in conjunction with a gitlab container to have some CI.
  An error occurs and similar support requests recommended using a different version, so I tried with <code>:latest</code> and some <code>:1.11</code> too.
  Unfortunately it keeps telling me this error:</p>
  
  <pre class="lang-bash prettyprint-override"><code>Running with gitlab-ci-multi-runner 1.11.4 (5e7ba4a)
    on foo (02cdacdc)
  Using Docker executor with image pretzlaw/php:7.1-apache ...
  Starting service mariadb:latest ...
  Pulling docker image mariadb:latest ...
  Waiting for services to be up and running...
  Pulling docker image pretzlaw/php:7.1-apache ...
  Running on runner-02cdacdc-project-7-concurrent-0 via 9d1d33dc9212...
  Fetching changes...
  HEAD is now at 7580815 QA: CI Lint
  From http://idgaf.example.org/foo/bar
     7580815..affeede  develop    -&gt; origin/develop
  Checking out affeede as develop...
  Skipping Git submodules setup
  [: 1: [: Syntax error: end of file unexpected
  [: 1: [: Syntax error: end of file unexpected
  ERROR: Job failed: exit code 2
  </code></pre>
  
  <p>Neither do I know how to debug this nor do I see any problem in my container or test script. This is the <code>.gitlab-ci.yml</code>:</p>
  
  <pre class="lang-yaml prettyprint-override"><code>before_script:
    - composer install
  
  test_7_1:
    image: pretzlaw/php:7.1-apache
    script: ls
  </code></pre>
  
  <p>It could be a problem of the container somewhere but I don't get it. Doing this manually (with the recent failed docker container) everything works fine:</p>
  
  <pre><code>docker container exec 68c7b5448a56 ls
  bin
  builds
  ...
  </code></pre>
  
  <p>How do I trace back the problem?
  What is it all about?</p>
  
  <p>It's for GitLab 9.1.1-ce.0.</p>