title: AWS CodeBuild - docker: not found
body: <p>I have the following buildspec.yml:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>version: 0.2
  
  phases:
    install:
      commands:
        -  curl -L -o sbt-0.13.6.deb http://dl.bintray.com/sbt/debian/sbt-0.13.6.deb &amp;&amp; \
        -  dpkg -i sbt-0.13.6.deb &amp;&amp; \
        -  rm sbt-0.13.6.deb &amp;&amp; \
        -  apt-get update &amp;&amp; \
        -  apt-get install sbt &amp;&amp; \
  
    pre_build:
      commands:
        - echo Entered the pre_build phase...
        - docker login -u user -p pass
  
    build:
      commands:
        - echo Build started on `date`
        - sbt test
        - echo test completed on `date`
        - sbt docker:publishLocal
        - docker tag image repo
  
    post_build:
      commands:
        - echo Build completed on `date`
        - echo Pushing the Docker image...
        - docker push repo
  
  cache:
    paths:
      - $HOME/.ivy2/cache
      - $HOME/.sbt</code></pre>
  </div>
  </div>
  </p>
  
  <p>and fails with </p>
  
  <blockquote>
    <p>/codebuild/output/tmp/script.sh: 4: /codebuild/output/tmp/script.sh: docker: not found</p>
  </blockquote>
  
  <p>in the console. As far as I see in the examples provided in the doc, docker should be already given.</p>
  
  <p>How can I avoid this?
  Thanks</p>