title: docker-machine direct install on Ubuntu with curl getting permission denied with sudo
body: <p>The instructions provided for installing docker-machine on Linux are way off for Ubuntu. </p>
  
  <p>These are the incorrect instructions (found <a href="https://docs.docker.com/machine/install-machine/#installing-machine-directly" rel="noreferrer">here</a>):</p>
  
  <pre><code>$ curl -L https://github.com/docker/machine/releases/download/v0.7.0/docker-machine-`uname -s`-`uname -m` &gt; /usr/local/bin/docker-machine &amp;&amp; \
  $ chmod +x /usr/local/bin/docker-machine
  </code></pre>
  
  <ul>
  <li>You will have all kinds of permission denied errors while using <code>sudo</code>.</li>
  <li>Once you hack your way around the sudo permission problems you will find your <code>docker-machine</code> file is empty after the install.</li>
  </ul>