File tree 2 files changed +3
-2
lines changed
images/base/files/usr/local/bin
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -337,7 +337,8 @@ enable_network_magic(){
337
337
# first we need to detect an IP to use for reaching the docker host
338
338
local docker_host_ip
339
339
docker_host_ip=" $( (getent ahostsv4 ' host.docker.internal' | head -n1 | cut -d' ' -f1) || true) "
340
- if [[ -z " ${docker_host_ip} " ]]; then
340
+ # if the ip doesn't exist or is a loopback address use the default gateway
341
+ if [[ -z " ${docker_host_ip} " ]] || [[ $docker_host_ip =~ ^127\. [0-9]+\. [0-9]+\. [0-9]+$ ]]; then
341
342
docker_host_ip=$( ip -4 route show default | cut -d' ' -f3)
342
343
fi
343
344
Original file line number Diff line number Diff line change @@ -20,4 +20,4 @@ package nodeimage
20
20
const DefaultImage = "kindest/node:latest"
21
21
22
22
// DefaultBaseImage is the default base image used
23
- const DefaultBaseImage = "kindest/base:v20210327-a8dff87f @sha256:d25665e921b61ab44d0627ce5a0ef82145e4c2c126e1a938d003bf4087349542 "
23
+ const DefaultBaseImage = "kindest/base:v20210328-c17ca167 @sha256:0311870f4d35b0f68e2fedb5d703a552a8e7eb438acc67a3bd13982c2bda7487 "
You can’t perform that action at this time.
0 commit comments