title: How to upgrade docker-compose to 2.0?
body: <p>I get this error whenever I try to set up a development environment:</p>
  
  <blockquote>
    <p>ERROR: In file './docker-compose.yml' service 'version' doesn't have
    any configuration options. All top level keys in your
    docker-compose.yml must map to a dictionary of configuration options.</p>
  </blockquote>
  
  <pre><code>$ docker-compose --version
  docker-compose version 1.5.2, build unknown
  </code></pre>
  
  <p>I'm told that I need to upgrade my docker-compose. But how can I upgrade it? I can't find any documentation about it.</p>
  
  <p>Any ideas?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I tried the answer from this <a href="https://stackoverflow.com/questions/36934675/ubuntu-and-updating-docker">question</a>:</p>
  
  <pre><code>curl -L "https://github.com/docker/compose/releases/download/1.8.1/docker-compose-$(uname -s)-$(uname -m)" &gt; ./docker-compose
  sudo mv ./docker-compose /usr/bin/docker-compose
  sudo chmod +x /usr/bin/docker-compose
  </code></pre>
  
  <p>After installing/ upgrading, I get this error:</p>
  
  <pre><code>-bash: /usr/bin/docker-compose: Permission denied
  </code></pre>
  
  <p>And I can run any container anymore!</p>
  
  <pre><code>$ docker-compose --version
  bash: /usr/bin/docker-compose: Permission denied
  </code></pre>
  
  <p>and:</p>
  
  <pre><code>$ docker-compose up -d
  bash: /usr/bin/docker-compose: Permission denied
  </code></pre>
  
  <p>Any ideas???</p>
  
  <p><strong>EDIT 2:</strong></p>
  
  <p>I tried this from the docker <a href="https://docs.docker.com/compose/install/" rel="nofollow noreferrer">site</a>:</p>
  
  <pre><code> $ curl -L "https://github.com/docker/compose/releases/download/1.9.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
  
   chmod +x /usr/local/bin/docker-compose
  </code></pre>
  
  <p>I still get the permission error:</p>
  
  <pre><code>bash: /usr/bin/docker-compose: Permission denied
  </code></pre>
  
  <p>Why!???</p>
  
  <p><strong>EDIT 3:</strong></p>
  
  <blockquote>
    <p>Note: If you get a “Permission denied” error, your /usr/local/bin
    directory probably isn’t writable and you’ll need to install Compose
    as the superuser. Run sudo -i, then the two commands below, then exit.</p>
  </blockquote>
  
  <p>So, I have tried:</p>
  
  <pre><code>$ sudo -i
  curl -L "https://github.com/docker/compose/releases/download/1.9.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
  chmod +x /usr/local/bin/docker-compose
  exit
  </code></pre>
  
  <p>Then:</p>
  
  <pre><code>$ docker-compose --version
  bash: /usr/bin/docker-compose: Permission denied
  </code></pre>
  
  <p>No good...</p>