issue while running Gitlab runner (kubernetes executor) connecting to kubernetes cluster
below error is coming
Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 10.96.0.10:53: no such host
Below is the setup
- git lab runner is running on window7 machine
- minkube is running on minikube VM on same machine
- config .toml is configured to connect to minikube kubernetes cluster
- below is .gitlab-ci.yml structre
image: docker:git
variables:
DOCKER_DRIVER: overlay2
DOCKER_HOST: tcp://localhost:2375
services:
- docker:dind
before_script:
- docker info
stages:
- build
build:
stage: build
tags:
- DxRunner
script:
- docker build -t dxapp/dotnetcore:1 --build-arg http_proxy=%HTTP_PROXY% --build-arg https_proxy=%HTTPS_PROXY% /Abhinav/DotNetCore
Getting below error
Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 10.96.0.10:53: no such host
ERROR: Job failed: error executing remote command: command terminated with non-zero exit code: Error executing in Docker Container: 1