I am learning Kubernetes, by following the course, https://www.udemy.com/course/kubernetes-microservices/
When i try to build an image, using the file https://github.com/fleetman-ci-cd-demo/jenkins, using minikube's docker daemon. it fails due to the below reason
curl: (6) Could not resolve host: updates.jenkins.io
I logged into minikube shell as well and did a ping, it didn't work
ping updates.jenkins.io
PING updates.jenkins.io (52.202.51.185): 56 data bytes
--- updates.jenkins.io ping statistics ---
68 packets transmitted, 0 packets received, 100% packet loss
I am able to reach google.com from minikube shell.
Please let me know how can i fix this?
The build log
WARN: install-plugins.sh is deprecated, please switch to jenkins-plugin-cli
Creating initial locks...
Analyzing war /usr/share/jenkins/jenkins.war...
Registering preinstalled plugins...
curl: (6) Could not resolve host: updates.jenkins.io
The command '/bin/sh -c /usr/local/bin/install-plugins.sh workflow-aggregator && /usr/local/bin/install-plugins.sh github && /usr/local/bin/install-plugins.sh ws-cleanup && /usr/local/bin/install-plugins.sh greenballs && /usr/local/bin/install-plugins.sh simple-theme-plugin && /usr/local/bin/install-plugins.sh kubernetes && /usr/local/bin/install-plugins.sh docker-workflow && /usr/local/bin/install-plugins.sh kubernetes-cli && /usr/local/bin/install-plugins.sh github-branch-source' returned a non-zero code: 6