microsoft / vscode-dev-containers

NOTE: Most of the contents of this repository have been migrated to the new devcontainers GitHub org (https://github.com/devcontainers). See https://github.com/devcontainers/template-starter and https://github.com/devcontainers/feature-starter for information on creating your own!
https://aka.ms/vscode-remote
MIT License
4.72k stars 1.4k forks source link

Add docker-in-docker Azure DNS override flag #1650

Closed kklopfenstein closed 2 years ago

kklopfenstein commented 2 years ago

By default the docker-in-docker script passes an Azure specific IP address to dockerd that causes Docker not to use the devcontainer's resolv.conf settings. We would like to not override DNS within Docker in some situations.

This PR adds a new AZURE_DNS_OVERRIDE flag that will give us the ability to disable this Azure DNS setting.