login to DockerHub remote registry using a custom dockercfg file location code example
Example 1: docker command to login with user name and pass word
$ docker login localhost:8080
Example 2: docker command to login with user name and pass word
$ cat ~/my_password.txt | docker login --username foo --password-stdin