Handle and log errors when reading .dockercfg
Merge pull request #1687 from erictune/fix_dockercfg

Handle and log errors when reading .dockercfg