Deploying Gitea Act Runner on Truenas Scale

Hello,

Gitea is deployed on my Truenas Scale Dragonfish-24.04.2. Gitea has a relatively new feature called Act Runner allowing running building pipelines.

I am trying to deploy a runner as custom app using the rootless configuration described in act_runner/rootless-docker.yaml at main - act_runner - Gitea: Git with a cup of tea.

The current config in the Custom app is:

Container Images
Docker Image: docker.io/gitea/act_runner
Image Tag: latest-dind-rootless

Container Environment Variables
GITEA_INSTANCE_URL: http://:30008
GITEA_RUNNER_REGISTRATION_TOKEN:
DOCKER_HOST: tcp://localhost:2376

Security Context
Privileged Mode: selected

other setting remained with default value.

When running the container, log shows 2 errors:

Error: cannot ping the docker daemon, is it running? Error response from daemon: Client sent an HTTP request to an HTTPS server.
Error: cannot ping the docker daemon, is it running? error during connect: Get "http://localhost:2376/_ping": read tcp [::1]:57422->[::1]:2376: read: connection reset by peer

How to solve it?

What is a correct configuration?

Thanks

I got it working with the following changes:

Created a dataset for the App to use.
Created a user with a UID of 1000 and added it modify permissions to the dataset.
Created an empty config.yaml file in the dataset.

Additional Container Environment Variables
CONFIG_FILE: /config.yaml
DOCKER_TLS_VERIFY: 1
DOCKER_CERT_PATH: /certs/client
–These two are probably not necessary:
GITEA_RUNNER_NAME: myrunner
GITEA_RUNNER_LABELS: runner

Host Path Volumes
/mnt/pool/dataset mounted to /data
/mnt/pool/dataset/config.yaml mounted to /config.yaml