title: How to authenticate docker login in Ubuntu 20.0 LTE
body: <p>I tried login to JFrog artifactory using docker commands:</p>
  <pre><code>root@dxc:/home/dxc# echo ${API_Key} | docker login --username 320060162 --password-stdin
  </code></pre>
  <p>But I am facing with the below error:</p>
  <pre><code>Error response from daemon: Get &quot;https://registry-1.docker.io/v2/&quot;: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
  </code></pre>
  <p>I tried to check config.json file:</p>
  <pre><code>root@dxc:/home/dxc# cd .docker/
  root@dxc:/home/dxc/.docker# cat config.json
  {
      &quot;auths&quot;: {}
  }
  </code></pre>