What to do when you have github.com or chocolatey.org cannot be resolved when you try to do docker build.
Multiple possible course of action:
use --add-host argument in the build to give resolution
use --network "Default Switch" argument, to specify to RUN commands which network to use
add in dockerfile, for example:
RUN echo 220.127.116.11 chocolatey.org >> "C:\Windows\System32\drivers\etc\hosts"
- set DNS for IPv6
Hope this helps !