use dockercfg registry auth if found

You could combine the if condition with this statement