[Skip to content](https://docs.gitea.com/runner/#_top)

# Gitea Runner

The [Gitea Runner](https://gitea.com/gitea/runner) executes the jobs of [Gitea Actions](https://docs.gitea.com/usage/actions/overview).
It polls a Gitea instance for queued jobs, runs their steps in a container or directly on the machine it is installed on, and streams the logs and the result back.

## Requirements

[Section titled “Requirements”](https://docs.gitea.com/runner/#requirements)

A runner needs a Gitea instance with Actions enabled, a [registration token](https://docs.gitea.com/runner/registration/), and, for containerized jobs, a Docker daemon. Actions are enabled by default since Gitea 1.21; on older instances they have to be turned on:

```
[actions]

ENABLED=true
```

Other OCI engines that implement the Docker API may work, but are untested. Podman is not a supported configuration.

## Execution modes

[Section titled “Execution modes”](https://docs.gitea.com/runner/#execution-modes)

A runner can run jobs in three different ways. The mode is not a global setting: it follows from the [labels](https://docs.gitea.com/runner/labels/) the runner is registered with, so a single runner can offer both container and host labels.

| Mode | How jobs run | Docker daemon | Notes |
| --- | --- | --- | --- |
| Docker (recommended) | in a container created from the label’s image | external, e.g. the host’s `/var/run/docker.sock` | jobs are isolated from each other, but share the daemon |
| Docker-in-Docker | in a container created by a daemon that lives next to the runner | bundled in the `dind` / `dind-rootless` images | strongest isolation, more setup, needs `--privileged` |
| Host | directly on the machine, with the tools installed there | only needed for `docker://` actions and service containers | no isolation between jobs |

## Getting started

[Section titled “Getting started”](https://docs.gitea.com/runner/#getting-started)

1. [Install the runner](https://docs.gitea.com/runner/installation/binary/) as a binary, [in Docker](https://docs.gitea.com/runner/installation/docker/), or [on Kubernetes](https://docs.gitea.com/runner/installation/kubernetes/).
2. [Register it](https://docs.gitea.com/runner/registration/) against your instance with a registration token.
3. [Configure it](https://docs.gitea.com/runner/configuration/), and pick the [labels](https://docs.gitea.com/runner/labels/) that decide which jobs it accepts.
4. Optionally set up a [shared cache](https://docs.gitea.com/runner/cache/), [job hooks](https://docs.gitea.com/runner/hooks/job-hooks/), a [post-task script](https://docs.gitea.com/runner/hooks/post-task-script/), or [metrics and health checks](https://docs.gitea.com/runner/monitoring/).

Every command and flag is listed in the [command line reference](https://docs.gitea.com/runner/reference/cli/).

## Versioning and compatibility

[Section titled “Versioning and compatibility”](https://docs.gitea.com/runner/#versioning-and-compatibility)

The runner is released independently of Gitea and its version numbers are unrelated to the instance’s. Gitea 1.21 or later is expected — older instances cannot accept the runner’s label declaration — and individual features need a newer instance still, which is called out where they apply.

When moving between major runner versions, read [Upgrading](https://docs.gitea.com/runner/upgrade/) first: `2.0.0` and `3.0.0` both contain breaking changes.