错误:准备失败:来自守护程序的错误响应:在此服务器上找不到请求的URL /v1.25/info

时间:2019-12-24 11:13:27

标签: docker gitlab-ci

我正在尝试在Windows 10 PC上设置gitlab CI。

我为gitlab创建了一个docker容器,为跑步者创建了一个。在执行管道之前,一切似乎都还可以。

经过这些实验ERROR: Job failed (system failure): Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? on windows 10

我已尝试按照此处的帖子配置跑步者:

How to connect to docker host from container on Windows 10 (Docker for Windows)

我测试过:

[[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"
...

[[runners]]
  name = "Runner des tests unitaires"
  url = "http://11.22.33.44:4480/"
  token = "my_secret_token"
  executor = "docker"
  [runners.docker]
    host = "tcp://10.0.75.1"
...

我相应地更改了.gitlab-ci.yml:

variables:
    HELLO: World
    DOCKER_HOST: tcp://docker.for.win.localhost

test:
    script:
        - echo $HELLO

但是执行管道时我仍然有错误:

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)

我觉得现在,这些容器可以一起聊天了,但是/v1.25/info URL是从哪里来的?

我不明白此错误消息的含义...

我的配置

Docker Desktop Community edition 2.0.0.3 (Engine 18.09.2)
GitLab Community Edition 12.5.2
Gitlab Runner 12.5.0
Windows 10.0.17763

0 个答案:

没有答案