I’m trying to set up gitlab CI on a windows 10 PC as a test.
I have created a docker container for gitlab and another for the runner. Everything seems to be OK till i execute the pipeline.
If i execute the pipeline, i have this error :
ERROR: Job failed (system failure): Error response from daemon: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /v1.25/info was not found on this server.</p>
</body></html> (executor_docker.go:980:0s)
The docker container for gitlab was created with this command (volumes are docker volumes) :
docker run --detach --name gitlab --hostname gitlab.mod --publish 4443:443 --publish 4480:80 --publish 8222:22 --volume gitlab-conf:/etc/gitlab --volume gitlab-logs:/var/log/gitlab --volume gitlab-data:/var/opt/gitlab gitlab/gitlab-ee
The runner was created this way
docker run -d --name gitlab-runner -v gitlab-runner-conf:/etc/gitlab-runner gitlab/gitlab-runner:latest
registered
docker run --rm -t -i -v gitlab-runner-conf:/etc/gitlab-runner gitlab/gitlab-runner register --url "http://11.22.33.44:4480/" --registration-token "sEcrEttOkEnfOrgItlAb" --description "Runner" --executor "docker" --docker-image alpine:latest --docker-services postgres:latest
where 11.22.33.44 is the IP of my computer
My runner is configured like this :
[[runners]]
name = "Runner des tests unitaires"
url = "http://11.22.33.44:4480/"
token = "my_secret_token"
executor = "docker"
[runners.docker]
host = "tcp://docker.for.win.localhost"
...
and my (very simple) .gitlab-ci.yml is set accordingly :
variables:
HELLO: World
DOCKER_HOST: tcp://docker.for.win.localhost
test:
script:
- echo $HELLO
I also tried tcp://10.75.0.1 (known from ipconfig) instead of tcp://docker.for.win.localhost but the result is the same.
I don’t understand the meaning of the error message…
It seems that gitlab and the gitlab runner can talk together
When my job returns " The requested URL /v1.25/info was not found on this server.
"
Is “this” the gitlab server or the gitlab runner server ? Where is this /v1.25/info URL called ?