I already discussed how to setup a Forgejo Runner here. I was using version 3.5.1 of the runner back then, but a lot changed and we are now on version 5.0.4. A big change broke my setup, which I am going to discuss here.

Update: This setup also works with Version 6.0.0 of the runner.

Docker Compose

The Compose File changed a bit:

  • Obviously, the version number changed from 3.5.1 to 5.0.4.
  • I also dropped the environment variable, as this one did not have any more impact.

Configuration file

  • I now explicitly defined the docker socket in the configuration file by changing the configuration container.docker_host to unix:///var/run/docker.sock. Something like that:
    container:
      docker_host: "unix:///var/run/docker.sock"
    

The rest of the previous article stays valid.