mirror of
https://codeberg.org/forgejo/docs.git
synced 2024-11-24 18:09:26 -05:00
Add guidance for using podman with the runner
This commit is contained in:
parent
0038bd1de9
commit
5528363904
1 changed files with 16 additions and 0 deletions
|
@ -60,6 +60,22 @@ Good signature from "Forgejo <contact@forgejo.org>"
|
|||
|
||||
For jobs to run in containers, the `Forgejo runner` needs access to [Docker](https://docs.docker.com/engine/install/).
|
||||
|
||||
### Podman
|
||||
|
||||
While Podman is generally compatible to Docker,
|
||||
it does not run socket for managing containers by default
|
||||
(because it doesn't usually need one).
|
||||
|
||||
If the Forgejo runner complains about "daemon Docker Engine socket not found", or "cannot ping the docker daemon",
|
||||
you can use podman to provide a Docker compatible socket from an unprivileged user
|
||||
and pass that socket on to the runner,
|
||||
e.g. by executing:
|
||||
|
||||
```shell
|
||||
$ podman system service -t 0 &
|
||||
$ DOCKER_HOST=unix://${XDG_RUNTIME_DIR}/podman/podman.sock ./forgejo-runner daemon
|
||||
```
|
||||
|
||||
### LXC
|
||||
|
||||
For jobs to run in LXC containers, the `Forgejo runner` needs passwordless sudo access for all `lxc-*` commands on a Debian GNU/Linux `bookworm` system where [LXC](https://linuxcontainers.org/lxc/) is installed. The [LXC helpers](https://code.forgejo.org/forgejo/lxc-helpers/) can be used as follows to create a suitable container:
|
||||
|
|
Loading…
Reference in a new issue