Error "Get https://registry-1.docker.io/v2/: net/http: request canceled" while building image : <p>I am getting the below error while building an image</p>

<pre><code>Step 1/10 : FROM ubuntu:14.04
Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
</code></pre>
