title: Unable to find image 'hello-world:latest' locally
body: <p>I have installed docker in my machine following the official installation steps for ubuntu. At the verification steps it fails.</p>
  
  <p>When I run the command: docker run hello-world it throws following error message:</p>
  
  <pre><code>Unable to find image 'hello-world:latest' locally
  docker: Error response from daemon: Get https://registry- 
  1.docker.io/v2/: net/http: request canceled while waiting for 
  connection (Client.Timeout exceeded while awaiting headers).
  See 'docker run --help'.  
  </code></pre>
  
  <p>Below are the docker details for my machine.</p>
  
  <pre><code>Client: Docker Engine - Community
  Version:           19.03.6
  API version:       1.40
  Go version:        go1.12.16
  Git commit:        369ce74a3c
  Built:             Thu Feb 13 01:27:49 2020
  OS/Arch:           linux/amd64
  Experimental:      false
  Got permission denied while trying to connect to the Docker daemon socket at 
  unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.40/version: dial unix 
  /var/run/docker.sock: connect: permission denied
  </code></pre>
  
  <p>If I tried for docker info I got the following message:</p>
  
  <blockquote>
    <p>Client:
     Debug Mode: false</p>
  </blockquote>
  
  <p>Server:
  ERROR: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get <a href="http://%2Fvar%2Frun%2Fdocker.sock/v1.40/info" rel="nofollow noreferrer">http://%2Fvar%2Frun%2Fdocker.sock/v1.40/info</a>: dial unix /var/run/docker.sock: connect: permission denied
  errors pretty printing info</p>