From 7f29fd815a1b43e364ef48c20a758f88818138e6 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Tue, 1 Jul 2025 17:51:05 +0000 Subject: [PATCH] fix(docs): better example for the default config file (#630) --add-host name not work depending on the network mode chosen. Closes forgejo/runner#213 Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/630 Reviewed-by: Michael Kriese Co-authored-by: Earl Warren Co-committed-by: Earl Warren --- internal/pkg/config/config.example.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/pkg/config/config.example.yaml b/internal/pkg/config/config.example.yaml index a2fdc50..dc380b1 100644 --- a/internal/pkg/config/config.example.yaml +++ b/internal/pkg/config/config.example.yaml @@ -82,7 +82,7 @@ container: enable_ipv6: false # Whether to use privileged mode or not when launching task containers (privileged mode is required for Docker-in-Docker). privileged: false - # And other options to be used when the container is started (eg, --add-host=my.forgejo.url:host-gateway). + # And other options to be used when the container is started (eg, --volume /etc/ssl/certs:/etc/ssl/certs:ro). options: # The parent directory of a job's working directory. # If it's empty, /workspace will be used. @@ -92,7 +92,7 @@ container: # For example, if you only allow containers to mount the `data` volume and all the json files in `/src`, you should change the config to: # valid_volumes: # - data - # - /src/*.json + # - /etc/ssl/certs # If you want to allow any volume, please use the following configuration: # valid_volumes: # - '**'