aboutsummaryrefslogtreecommitdiff
path: root/src/docker-in-docker/install.sh
diff options
context:
space:
mode:
authorJosh Spicer <josh@joshspicer.com>2022-10-06 20:31:03 +0300
committerGitHub <noreply@github.com>2022-10-06 20:31:03 +0300
commite8627e7dd27ea9a07157f0762cb0897763cd332d (patch)
treee2bce8d489599db5b7ec0fc879581f9c57ce7197 /src/docker-in-docker/install.sh
parent87b0685b2a0325e208fa163befba678ebf816416 (diff)
clarify reason for AZURE_DNS_AUTO_DETECTION variablekklopfenstein/docker-in-docker-azure-dns-override
Diffstat (limited to 'src/docker-in-docker/install.sh')
-rwxr-xr-xsrc/docker-in-docker/install.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/docker-in-docker/install.sh b/src/docker-in-docker/install.sh
index a649477..afcdc1a 100755
--- a/src/docker-in-docker/install.sh
+++ b/src/docker-in-docker/install.sh
@@ -11,7 +11,7 @@
DOCKER_VERSION=${VERSION:-"latest"} # The Docker/Moby Engine + CLI should match in version
USE_MOBY=${MOBY:-"true"}
DOCKER_DASH_COMPOSE_VERSION=${DOCKERDASHCOMPOSEVERSION:-"v1"} # v1 or v2
-AZURE_DNS_OVERRIDE=${AZUREDNSOVERRIDE:-"true"}
+AZURE_DNS_AUTO_DETECTION=${AZUREDNSAUTODETECTION:-"true"}
ENABLE_NONROOT_DOCKER=${ENABLE_NONROOT_DOCKER:-"true"}
USERNAME=${USERNAME:-"automatic"}
@@ -322,7 +322,7 @@ tee /usr/local/share/docker-init.sh > /dev/null \
set -e
-AZURE_DNS_OVERRIDE=$AZURE_DNS_OVERRIDE
+AZURE_DNS_AUTO_DETECTION=$AZURE_DNS_AUTO_DETECTION
EOF
tee -a /usr/local/share/docker-init.sh > /dev/null \
@@ -366,7 +366,7 @@ dockerd_start="$(cat << 'INNEREOF'
# Handle DNS
set +e
cat /etc/resolv.conf | grep -i 'internal.cloudapp.net'
- if [ $? -eq 0 ] && [ ${AZURE_DNS_OVERRIDE} = "true" ]
+ if [ $? -eq 0 ] && [ ${AZURE_DNS_AUTO_DETECTION} = "true" ]
then
echo "Setting dockerd Azure DNS."
CUSTOMDNS="--dns 168.63.129.16"