How to use docker login action

Hi there,

I’m currently trying to switch from Github Actions to Gitea Actions.
The one thing I can’t get to work is the docker/login action. I use the one hosted on
docker/login-action - login-action - Gitea: Git with a cup of tea

Here is the step in my actions file:

      - name: Login to the Container registry
        uses: docker/login-action@v2
          registry: <my-gitea-url>
          username: <my-username>
          password: ${{ secrets.CI_TOKEN }}

Within the project I added a secret called CI_TOKEN. Now when the action runs, this is the output:

Logging into <my-gitea-url>...
::error::Unable to locate executable file: docker. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.

The error seems to complain, that there is no docker installed on the runner. This is the compose file I use to run the runner:

version: '3.8'
    image: gitea/act_runner
    container_name: GiteaRunner
    restart: always
      - /var/run/docker.sock:/var/run/docker.sock
      - GITEA_RUNNER_NAME=Gitea Runner
      - GITEA_INSTANCE_URL=<my-gitea-url>
      - GITEA_RUNNER_REGISTRATION_TOKEN=<my-gitea-token>

I mount the docker socket inside the container, so in my opinion this should work well.

Can somebody help me and tell me how to debug this?

If you are using ubuntu-latest label, the default image is based on debian with no docker installation. You could use a special image with docker installed.

1 Like

Is there any recommend image for docker runs? Thanks!



runs-on: ubuntu-latest


image: catthehacker/ubuntu:act-latest


- name: Check out repository code

uses: actions/checkout@v3