curl: (6) Could not resolve host: get.docker.com
Closed this issue · 1 comments
platyman commented
Hi, I tried to run the test project and I get the following error:
null_resource.setup_kubespray[0] (remote-exec): curl: (6) Could not resolve host: get.docker.com
null_resource.setup_kubespray[0] (remote-exec): Error downloading Docker installation script. Exiting.
╷
│ Error: remote-exec provisioner error
│
│ with null_resource.setup_kubespray[0],
│ on vm-kubespray-host.tf line 80, in resource ‘null_resource’ ‘setup_kubespray’:
│ 80: provisioner ‘remote-exec’ {
│
│ error executing ‘/tmp/terraform_1974938577.sh’: Process exited with status 1
╵
Connecting via SSH to the kubespray virtual machine, I can't seem to ping google.com or any other domain (which explains why curl is failing). However, I'm using an interface that normally allows access to the internet...
platyman commented
It was a problem in my network configuration. I added the bastion and it worked