GiteaActions: docker command not found #12747

Closed
opened 2025-11-02 10:19:43 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @bjdaijun on GitHub (Mar 27, 2024).

Description

I used GiteaActions to build a docke image, but It failed with message : docker command not found. Here is my yaml file:

name: test
 on: push
 jobs: 
  build-and-push
  runs-on: ubuntu-latest
  steps:
    - name: checkout
       uses: actions/checkout@v2
    - name: dockerbuild
       run: docker build -t test:latest .

The first action checkout runs successfully, but the second action dockerbuild failed with message: docker not found.

And my act_runner in docker , with /var/run/docker/sock mounted.

Is this the right usage to build a docker image in actions?

Gitea Version

1.21.7

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

run by docker

Database

None

Originally created by @bjdaijun on GitHub (Mar 27, 2024). ### Description I used GiteaActions to build a docke image, but It failed with message : docker command not found. Here is my yaml file: ``` name: test on: push jobs: build-and-push runs-on: ubuntu-latest steps: - name: checkout uses: actions/checkout@v2 - name: dockerbuild run: docker build -t test:latest . ``` The first action checkout runs successfully, but the second action dockerbuild failed with message: docker not found. And my act_runner in docker , with /var/run/docker/sock mounted. Is this the right usage to build a docker image in actions? ### Gitea Version 1.21.7 ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? run by docker ### Database None
GiteaMirror added the issue/needs-feedback label 2025-11-02 10:19:43 -06:00
Author
Owner

@yp05327 commented on GitHub (Mar 27, 2024):

See: https://gitea.com/gitea/act_runner/issues/425

@yp05327 commented on GitHub (Mar 27, 2024): See: https://gitea.com/gitea/act_runner/issues/425
Author
Owner

@bjdaijun commented on GitHub (Mar 27, 2024):

See: https://gitea.com/gitea/act_runner/issues/425

It works, thank you very much.

@bjdaijun commented on GitHub (Mar 27, 2024): > See: https://gitea.com/gitea/act_runner/issues/425 It works, thank you very much.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#12747