error when running act_runner daemon #322

Closed
opened 2023-08-03 05:42:29 +00:00 by ware32 · 5 comments

Using the prebuilt binary, when executing

./act_runner daemon

I get

INFO[2023-08-03T07:36:04+02:00] Starting runner daemon
Error: daemon Docker Engine socket not found and docker_host config was invalid

Using the prebuilt binary, when executing ./act_runner daemon I get INFO[2023-08-03T07:36:04+02:00] Starting runner daemon Error: daemon Docker Engine socket not found and docker_host config was invalid
Member

Is your socket in the following path, if not you can specify it via modfiying container.docker_host in config.yaml.

"/var/run/docker.sock",
"/var/run/podman/podman.sock",
"$HOME/.colima/docker.sock",
"$XDG_RUNTIME_DIR/docker.sock",
`\\.\pipe\docker_engine`,
"$HOME/.docker/run/docker.sock",
Is your socket in the following path, if not you can specify it via modfiying `container.docker_host` in `config.yaml`. ``` "/var/run/docker.sock", "/var/run/podman/podman.sock", "$HOME/.colima/docker.sock", "$XDG_RUNTIME_DIR/docker.sock", `\\.\pipe\docker_engine`, "$HOME/.docker/run/docker.sock", ```
Author

Is your socket in the following path, if not you can specify it via an environment variable (DOCKER_HOST).

"/var/run/docker.sock",
"/var/run/podman/podman.sock",
"$HOME/.colima/docker.sock",
"$XDG_RUNTIME_DIR/docker.sock",
`\\.\pipe\docker_engine`,
"$HOME/.docker/run/docker.sock",

Sorry, I dont understand your answer. Do I need to have docker installed? I am using the prebuilt binary

> Is your socket in the following path, if not you can specify it via an environment variable (`DOCKER_HOST`). > ``` > "/var/run/docker.sock", > "/var/run/podman/podman.sock", > "$HOME/.colima/docker.sock", > "$XDG_RUNTIME_DIR/docker.sock", > `\\.\pipe\docker_engine`, > "$HOME/.docker/run/docker.sock", > ``` Sorry, I dont understand your answer. Do I need to have docker installed? I am using the prebuilt binary
Member

Do I need to have docker installed?

It's not necessary.(But we recommend that you run jobs in container, see document)

If you are sure that you want to run jobs directly on the host only, you can specify your labels without image.(see https://docs.gitea.com/usage/actions/act-runner#labels). Then act_runner won't check that whether docker is running.

> Do I need to have docker installed? It's not necessary.(But we recommend that you run jobs in container, see [document](https://docs.gitea.com/usage/actions/act-runner#requirements)) If you are sure that you want to run jobs directly on the host only, you can specify your labels without image.(see https://docs.gitea.com/usage/actions/act-runner#labels). Then `act_runner` won't check that whether docker is running.
Author

Do I need to have docker installed?

It's not necessary.(But we recommend that you run jobs in container, see document)

If you are sure that you want to run jobs directly on the host only, you can specify your labels without image in config file(via container.labels).(see https://docs.gitea.com/usage/actions/act-runner#labels). Then act_runner won't check that whether docker is running.

Now it is working but it throws a warning

INFO[2023-08-03T08:36:06+02:00] Starting runner daemon
WARN[2023-08-03T08:36:06+02:00] Because the Gitea instance is an old version, skip declare labels and version.

> > Do I need to have docker installed? > > It's not necessary.(But we recommend that you run jobs in container, see [document](https://docs.gitea.com/usage/actions/act-runner#requirements)) > > If you are sure that you want to run jobs directly on the host only, you can specify your labels without image in config file(via `container.labels`).(see https://docs.gitea.com/usage/actions/act-runner#labels). Then `act_runner` won't check that whether docker is running. > Now it is working but it throws a warning INFO[2023-08-03T08:36:06+02:00] Starting runner daemon WARN[2023-08-03T08:36:06+02:00] Because the Gitea instance is an old version, skip declare labels and version.
Member

Now it is working but it throws a warning

Never mind, It won't hinder you from using it.

This warning related to https://github.com/go-gitea/gitea/pull/24806. So after Gitea 1.21 relsead, you can change the labels of runner in config file without re-registering it.

> Now it is working but it throws a warning Never mind, It won't hinder you from using it. This warning related to https://github.com/go-gitea/gitea/pull/24806. So after Gitea 1.21 relsead, you can change the labels of runner in config file without re-registering it.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gitea/act_runner#322
No description provided.