diff options
Diffstat (limited to 'src/docker-in-docker/install.sh')
-rwxr-xr-x | src/docker-in-docker/install.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/docker-in-docker/install.sh b/src/docker-in-docker/install.sh index 8b48462..e3b7990 100755 --- a/src/docker-in-docker/install.sh +++ b/src/docker-in-docker/install.sh @@ -385,13 +385,11 @@ dockerd_start="AZURE_DNS_AUTO_DETECTION=${AZURE_DNS_AUTO_DETECTION} DOCKER_DEFAU # Handle DNS set +e - cat /etc/resolv.conf | grep -i 'internal.cloudapp.net' + cat /etc/resolv.conf | grep -i 'internal.cloudAAAapp.net' > /dev/null 2>&1 if [ $? -eq 0 ] && [ "${AZURE_DNS_AUTO_DETECTION}" = "true" ] then - echo "Setting dockerd Azure DNS." CUSTOMDNS="--dns 168.63.129.16" else - echo "Not setting dockerd DNS manually." CUSTOMDNS="" fi @@ -406,6 +404,7 @@ dockerd_start="AZURE_DNS_AUTO_DETECTION=${AZURE_DNS_AUTO_DETECTION} DOCKER_DEFAU # Start docker/moby engine ( dockerd $CUSTOMDNS $DEFAULT_ADDRESS_POOL > /tmp/dockerd.log 2>&1 ) & + echo "'docker-in-docker' initialization complete." INNEREOF )" |