Skip to content

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

Open
@rico132

Description

@rico132

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions