我正在尝试运行应该使用GitLab CI构建我的Web项目的基本管道
我的设置:
.gitlab-ci.yml:
image: node:latest
cache:
paths:
- node_modules/
build:
script:
- npm install
- npm run build
我的输出失败了:
Running with gitlab-runner 10.1.0 (c1ecf97f)
on ****** (9366a476)
Using Docker executor with image node:latest ...
Using docker image sha256:4d72396806765f67139745bb91135098acaf23ce7d627e41eb4da9c62e5d6729 for predefined container...
Pulling docker image node:latest ...
Using docker image node:latest ID=sha256:cf20b9ab2cbc1b6f76e820839ad5f296b4c9a9fd04f3e74651c16ed49943dbc4 for build container...
ERROR: Job failed (system failure): dial http: unknown network http
我认为问题可能会发生,因为容器无法访问互联网,但https://hub.docker.com/r/byrnedo/alpine-curl/ curl容器获取了数据,所以我认为情况并非如此。
UPD: 当GitLab runner尝试连接到容器时出现问题。
答案 0 :(得分:0)
问题出在GitLab CI config(config.toml),docker host。
host = "tcp://127.0.0.1:2375"
- 错误的
应为<input type="text" name="summerSeasonYear" id="summerSeasonYear" value="15.10.18">