title: Saving docker credentials in docker config
body: <p>I have a private hosted registry at www.myDockerRepo.company.com:2222. To login to this repository I follow these steps</p>
  
  <pre><code>docker login www.myDockerRepo.company.com:2222
  username : xxx
  password : ***
  email : xyz@company.com
  
  WARNING: login credentials saved in /home/vagrant/.docker/config.json
  Login Succeeded
  </code></pre>
  
  <p>Can these credentials be saved before hand in the config.json so that clients dont need to manually enter these credentials n every login? What is the best practice to login to private registries?</p>