Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker: Error response from daemon: error while creating mount source path '/host_mnt/root/.gitconfig': mkdir /host_mnt/root: operation not permitted #1677

Closed
pietrzakadrian opened this issue Mar 12, 2023 · 6 comments
Labels
kind/bug Something isn't working stale

Comments

@pietrzakadrian
Copy link

Bug report info

act version:            0.2.43
GOOS:                   darwin
GOARCH:                 arm64
NumCPU:                 10
Docker host:            DOCKER_HOST environment variable is unset/empty.
Sockets found:
        /var/run/docker.sock
        /Users/pietrzakadrian/.docker/run/docker.sock
Config files:           
        /Users/pietrzakadrian/.actrc:
                -P ubuntu-latest=catthehacker/ubuntu:act-latest
                -P ubuntu-22.04=catthehacker/ubuntu:act-22.04
                -P ubuntu-20.04=catthehacker/ubuntu:act-20.04
                -P ubuntu-18.04=catthehacker/ubuntu:act-18.04
Build info:
        Go version:            go1.20.1
        Module path:           command-line-arguments
        Main version:          
        Main path:             
        Main checksum:         
        Build settings:
                -buildmode:           exe
                -compiler:            gc
                -ldflags:             -X main.version=0.2.43
                CGO_ENABLED:          1
                CGO_CFLAGS:           
                CGO_CPPFLAGS:         
                CGO_CXXFLAGS:         
                CGO_LDFLAGS:          
                GOARCH:               arm64
                GOOS:                 darwin
Docker Engine:
        Engine version:        20.10.23
        Engine runtime:        runc
        Cgroup version:        2
        Cgroup driver:         cgroupfs
        Storage driver:        overlay2
        Registry URI:          https://index.docker.io/v1/
        OS:                    Docker Desktop
        OS type:               linux
        OS version:            
        OS arch:               aarch64
        OS kernel:             5.15.49-linuxkit
        OS CPU:                5
        OS memory:             7951 MB
        Security options:
                name=seccomp,profile=default
                name=cgroupns

Command used with act

act -j stan -s GITHUB_TOKEN=github...

Describe issue

My docker has full disk access and shares the /root/.gitconfig and /root/.ssh folders. This action works on github.

Link to GitHub repository

No response

Workflow content

name: stan
on: [push]

jobs:
  stan:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: php-actions/composer@v6
        with:
          args: --ignore-platform-reqs

      - name: PHPStan Static Analysis
        uses: php-actions/phpstan@v3
        with:
          path: src/ tests/
          configuration: phpstan.neon
          memory_limit: 1G

Relevant log output

docker: Error response from daemon: error while creating mount source path '/host_mnt/root/.gitconfig': mkdir /host_mnt/root: operation not permitted.

Additional information

No response

@pietrzakadrian pietrzakadrian added the kind/bug Something isn't working label Mar 12, 2023
@macguirerintoul
Copy link

Did you manage to solve this? I'm getting a similar error.

@macguirerintoul
Copy link

Maybe related to this? docker/for-mac#4976

@berniedurfee-renaissance

I'm having the same issue. There's also a bug report on the Composer action repo: php-actions/composer#97

Copy link
Contributor

Issue is stale and will be closed in 14 days unless there is new activity

@github-actions github-actions bot added the stale label Nov 21, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 5, 2023
@traut
Copy link

traut commented Aug 1, 2024

same issue:

INFO[0000] Using docker host 'unix:///Users/traut/.docker/run/docker.sock', and daemon socket 'unix:///Users/traut/.docker/run/docker.sock'
[WF/foo] 🚀  Start image=catthehacker/ubuntu:act-latest
[WF/foo]   🐳  docker pull image=catthehacker/ubuntu:act-latest platform=linux/arm64 username= forcePull=true
[WF/foo]   🐳  docker create image=catthehacker/ubuntu:act-latest platform=linux/arm64 entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[WF/foo]   🐳  docker run image=catthehacker/ubuntu:act-latest platform=linux/arm64 entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
Error: failed to start container: Error response from daemon: error while creating mount source path '/host_mnt/Users/traut/.docker/run/docker.sock': mkdir /host_mnt/Users/traut/.docker/run/docker.sock: operation not supported

Versions:
macOS 14.5 (23F79)

$ docker --version
Docker version 27.1.1, build 6312585
$ act --version
act version 0.2.64

@faroukfaiz10
Copy link

faroukfaiz10 commented Nov 23, 2024

  1. Make sure you've added /root to virtual file shares. It's not there by default (docs). OP said they already did this.
  2. In my case, this was not enough, but switching from VirtioFS to gRPC FUSE in Docker desktop > Settings > General > Virtual Machine Options fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

5 participants