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

Closed
opened 2026-03-01 21:46:44 +03:00 by kerem · 7 comments
Owner

Originally created by @pietrzakadrian on GitHub (Mar 12, 2023).
Original GitHub issue: https://github.com/nektos/act/issues/1677

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.

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

Originally created by @pietrzakadrian on GitHub (Mar 12, 2023). Original GitHub issue: https://github.com/nektos/act/issues/1677 ### Bug report info ```plain text 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 ```sh 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 ```yml 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 ```sh 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_
kerem 2026-03-01 21:46:44 +03:00
Author
Owner

@macguirerintoul commented on GitHub (May 19, 2023):

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

<!-- gh-comment-id:1553957664 --> @macguirerintoul commented on GitHub (May 19, 2023): Did you manage to solve this? I'm getting a similar error.
Author
Owner

@macguirerintoul commented on GitHub (May 19, 2023):

Maybe related to this? https://github.com/docker/for-mac/issues/4976

<!-- gh-comment-id:1555030211 --> @macguirerintoul commented on GitHub (May 19, 2023): Maybe related to this? https://github.com/docker/for-mac/issues/4976
Author
Owner

@berniedurfee-renaissance commented on GitHub (May 24, 2023):

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

<!-- gh-comment-id:1561963210 --> @berniedurfee-renaissance commented on GitHub (May 24, 2023): I'm having the same issue. There's also a bug report on the Composer action repo: https://github.com/php-actions/composer/issues/97
Author
Owner

@github-actions[bot] commented on GitHub (Nov 21, 2023):

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

<!-- gh-comment-id:1820007797 --> @github-actions[bot] commented on GitHub (Nov 21, 2023): Issue is stale and will be closed in 14 days unless there is new activity
Author
Owner

@traut commented on GitHub (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
<!-- gh-comment-id:2262656149 --> @traut commented on GitHub (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 ```
Author
Owner

@faroukfaiz10 commented on GitHub (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.
<!-- gh-comment-id:2495668519 --> @faroukfaiz10 commented on GitHub (Nov 23, 2024): 1. Make sure you've added `/root` to virtual file shares. It's not there by default ([docs](https://docs.docker.com/desktop/settings-and-maintenance/settings/#file-sharing)). OP said they already did this. 1. In my case, this was not enough, but switching from `VirtioFS` to `gRPC FUSE` in _Docker desktop > Settings > General > Virtual Machine Options_ fixed it.
Author
Owner

@yeaung276 commented on GitHub (May 16, 2025):

2. ut switching from VirtioFS

Thanks, This fix my issue

<!-- gh-comment-id:2885685433 --> @yeaung276 commented on GitHub (May 16, 2025): > 2\. ut switching from `VirtioFS` Thanks, This fix my issue
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#829
No description provided.