马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
×
容器方式运行shell类型executor 致 /var/lib/docker/overlay2 目录空间占用巨大,是否可以配置自动清理,目前runner版本为16.8.0,最新的版本是否有更新
以下是 docker-compose 配置文件和 runner config.toml
docker-compose.yml
```
version: '3'
services:
runner-nodejs:
image: gitlab/gitlab-runner:alpine3.19-v16.8.0
container_name: runner-nodejs
privileged: true
restart: always
volumes:
- ./config:/etc/gitlab-runner
- /var/run/docker.sock:/var/run/docker.sock
```
config.toml
```
concurrent = 1
check_interval = 0
shutdown_timeout = 0
[session_server]
session_timeout = 1800
[[runners]]
name = ""
url = "/"
id = 46
token = ""
token_obtained_at = 2024-01-30T04:09:09Z
token_expires_at = 0001-01-01T00:00:00Z
executor = "shell"
[runners.cache]
MaxUploadedArchiveSize = 0
```
|