Cannot mount volumes if using the docker run action or docker run command #14706

Open
opened 2025-11-02 11:20:43 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @rico132 on GitHub (Jul 4, 2025).

Description

I am trying to mount the repo dir into a container:

      - uses: addnab/docker-run-action@v3
        with:
          image: ${{ vars.DOCKER_REGISTRY }}/org/repo:latest
          options: --mount type=bind,src=${{ github.workspace }},dst=/asdf

and get the error message:
Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /workspace/***/repo

same with the -v flag

same with:

run: docker run -v

is there any way to mount a directory into a container?

Gitea Version

1.24.0

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

dind

Database

None

Originally created by @rico132 on GitHub (Jul 4, 2025). ### Description I am trying to mount the repo dir into a container: ``` - uses: addnab/docker-run-action@v3 with: image: ${{ vars.DOCKER_REGISTRY }}/org/repo:latest options: --mount type=bind,src=${{ github.workspace }},dst=/asdf ``` and get the error message: `Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /workspace/***/repo` same with the -v flag same with: ``` run: docker run -v ``` is there any way to mount a directory into a container? ### Gitea Version 1.24.0 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? dind ### Database None
GiteaMirror added the topic/gitea-actionstype/bug labels 2025-11-02 11:20:43 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#14706