簡體   English   中英

Gitlab-runner將自定義選項傳遞給docker

[英]Gitlab-runner pass custom options to docker

是否可以將自定義選項傳遞給docker:
我正在尋找一種將--cgroup-parent選項傳遞給gitlab-runner

或至少這兩個選項--cpuset-mems="" ,-- --cpuset-cpus=""

在官方gitlab-runner網站上,我沒有找到有關將任何這些選項或任何自定義選項傳遞給docker的任何信息。

它在這里: https : //gitlab.com/gitlab-org/gitlab-runner/blob/master/docs/configuration/advanced-configuration.md#the-runnersdocker-section

您需要創建一個[runners.docker]部分。

如其所言,可以在以下位置找到要編輯的文件:

/etc/gitlab-runner/config.toml on *nix systems when gitlab-runner is
executed as root (this is also path for service configuration)

~/.gitlab-runner/config.toml on *nix systems when gitlab-runner is
executed as non-root

./config.toml on other systems

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM