Skip to content

CICD-205 · Docker-based runner configuration ​

Encyclopedia · Runner administration and execution infrastructure · All snippets

Previous · CICD-204 · Next · CICD-206

1. Where it fits ​

  • Placement CI run step or authorized lab terminal.
  • Prerequisites lab host, trusted repositories, installed act_runner or GitHub runner when named.
  • Platforms gitea-actions.
  • Parameters GITEA_RUNNER_TOKEN, GITEA_URL.

2. Copy the snippet ​

bash
docker volume create gitea-runner-state
docker run -d --name gitea-runner --restart unless-stopped -v gitea-runner-state:/data -v /var/run/docker.sock:/var/run/docker.sock -e "GITEA_INSTANCE_URL=${GITEA_URL:?}" -e "GITEA_RUNNER_REGISTRATION_TOKEN=${GITEA_RUNNER_TOKEN:?}" docker.io/gitea/act_runner:0.2.11

3. How it works ​

The command starts a container from the selected image under its declared network and resource options. The command archives or inspects the selected files. Verify the relative paths and file set before using the archive downstream.

4. Verify the result ​

Confirm the service is online and can launch a job container. The Docker socket confers host-level power. Limit this runner to trusted repositories and prefer provisioning registration state without retaining the token in container metadata.

Watch for. Use the intended trusted execution context. Keep secret values out of traces, artifacts and debug output.

Validation version-dependent (Bash parse). Status definitions.