Docker pull not using correct DNS server when private registry on VPN

This solved the issue for me. Though what I did instead is change the first line to:

DNS=`cat /etc/resolv.conf`

Thanks much!