chore(docs): clarify the behavior of [container].docker_host (#1059)
The description of `container.docker_host` was misleading (and IMO the setting itself does too many things, see forgejo/forgejo-actions-feature-requests#58). I clarified the comments in the example config to clearly explain that it will mount the specified socket inside the job container, and give some example values <!--start release-notes-assistant--> <!--URL:https://code.forgejo.org/forgejo/runner--> - other - [PR](https://code.forgejo.org/forgejo/runner/pulls/1059): <!--number 1059 --><!--line 0 --><!--description Q2xhcmlmeSB0aGUgYmVoYXZpb3Igb2YgYGNvbnRhaW5lci5kb2NrZXJfaG9zdGA=-->Clarify the behavior of `container.docker_host`<!--description--> <!--end release-notes-assistant--> Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/1059 Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org> Co-authored-by: Andrew Cassidy <drewcassidy@me.com> Co-committed-by: Andrew Cassidy <drewcassidy@me.com>
This commit is contained in:
parent
ba1beb08f4
commit
e68940619c
1 changed files with 5 additions and 3 deletions
|
|
@ -176,10 +176,12 @@ container:
|
||||||
# valid_volumes:
|
# valid_volumes:
|
||||||
# - '**'
|
# - '**'
|
||||||
valid_volumes: []
|
valid_volumes: []
|
||||||
# overrides the docker client host with the specified one.
|
# Overrides the docker host set by the DOCKER_HOST environment variable, and mounts on the job container.
|
||||||
# If "-" or "", an available docker host will automatically be found.
|
# If "-" or "", no docker host will be mounted in the job container
|
||||||
# If "automount", an available docker host will automatically be found and mounted in the job container (e.g. /var/run/docker.sock).
|
# If "automount", an available docker host will automatically be found and mounted in the job container (e.g. /var/run/docker.sock).
|
||||||
# Otherwise the specified docker host will be used and an error will be returned if it doesn't work.
|
# If it's a url, the specified docker host will be mounted in the job container
|
||||||
|
# Example urls: unix:///run/docker.socket or ssh://user@host
|
||||||
|
# The specified socket is mounted within the job container at /var/run/docker.sock
|
||||||
docker_host: "-"
|
docker_host: "-"
|
||||||
# Pull docker image(s) even if already present
|
# Pull docker image(s) even if already present
|
||||||
force_pull: false
|
force_pull: false
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue