File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 174
174
175
175
[官方教程](https://docs.gitlab.com/omnibus/docker/README.html#deploy-gitlab-in-a-docker-swarm) 创建 `docker-compose.yml` 文件
176
176
177
-
178
177
` ` ` yaml
179
178
version: "3.6"
180
179
services:
@@ -313,8 +312,13 @@ check_interval = 0
313
312
disable_entrypoint_overwrite = false
314
313
oom_kill_disable = false
315
314
disable_cache = false
316
- volumes = [" /cache" ]
315
+ volumes = [" /cache" , " /var/run/docker.sock:/var/run/docker.sock " ]
317
316
shm_size = 0
318
317
```
319
318
320
- > ⚠️ ` token ` 是生成的,必须通过 ` gitlab-runner ` 生成 ` token `
319
+ 1 . ⚠️ ` token ` 是生成的,必须通过 ` gitlab-runner ` 生成 ` token `
320
+ 2 . ` volumes = ["/cache", "/var/run/docker.sock:/var/run/docker.sock"] ` 配置添加很重要,解决下面错误:
321
+
322
+ ```
323
+ ERROR: error during connect: Get http://docker:2375/v1.40/info: dial tcp: lookup docker on 8.8.8.8:53: no such host
324
+ ```
You can’t perform that action at this time.
0 commit comments