CircleCI-Public / circleci-cli

Use CircleCI from the command line
https://circleci-public.github.io/circleci-cli/
MIT License
405 stars 233 forks source link

`circleci local execute` does not work with Docker for Desktop on OSX #1058

Open pisymbol opened 1 month ago

pisymbol commented 1 month ago

Meta:

CircleCI CLI Version:

0.1.30549+735ecd3 (homebrew)

Operating System:

Darwin ip-192-168-1-122.ec2.internal 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:12:49 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6020 arm64

CircleCI CLI Diagnostic:

---
CircleCI CLI Diagnostics
---
Debugger mode: false
Config found: /Users/alex/.circleci/cli.yml
API host: https://circleci.com
API endpoint: graphql-unstable
OK, got a token.
Trying an introspection query on API...
Ok.
Hello, Alexander Sack.

Current behavior:

# circleci local execute <job>
Fetching latest build environment...
Docker image digest: sha256:008ba7f4223f1e26c11df9575283491b620074fa96da6961e0dcde47fb757014
docker: Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /var/folders/13/2vqhq9lj53gbg2cg6m0m6kqr0000gn/T/4250947489_circleci_config.yml.

Expected behavior:

Job should run locally. My guess is this had to do with the -v vs. --mount behavior but I haven't looked at source yet.

When did this begin / Was this previously working?:

Never seen it work yet.

pisymbol commented 1 month ago

Ok, it seems though you have to use VirtioFS for file sharing implementations under General else bind mounts won't work. Hope this helps someone who encounters this issue.