Error when executing act_runner daemon

when executing ./act_runner daemon I get the error:
INFO[2023-08-02T22:17:42+02:00] Starting runner daemon
Error: daemon Docker Engine socket not found and docker_host config was invalid

how can I solve this?

Hi @ware32 ,

I received the same error because I’m running the act runner without Docker. After some time reading the doco, I encountered the following at Act Runner | Gitea Documentation

  • If you want to run jobs in the host directly, you can change it to ubuntu-22.04:host or just ubuntu-22.04, the :host is optional. However, we suggest you to use a special name like linux_amd64:host or windows:host to avoid misusing it.*

My fix involved:

  • Getting rid of the default label options in the default-generated config.yaml
  • Adding a label for local (non-Docker) runs that looks like this:
  labels:
    - "linux_amd64:host"
  • Invoking act runner to use the new config.yaml
./act_runner daemon --config config.yaml

Good luck!
Regards,
Kevin