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

docker: Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /tmp/3966974312_circleci_config.yml. #1036

Closed miguelmota closed 5 months ago

miguelmota commented 5 months ago

Meta:

circleci local execute fails with docker volume bind error. Seems like it can't map the generated temp file correctly.

CircleCI CLI Version:

$ circleci version
0.1.29936+c2d98ee (release)

Operating System:

$ uname -a
Linux archlinux 6.6.4-arch1-1 #1 SMP PREEMPT_DYNAMIC Mon, 04 Dec 2023 00:29:19 +0000 x86_64 GNU/Linux

CircleCI CLI Diagnostic:

$ circleci diagnostic

---
CircleCI CLI Diagnostics
---
Debugger mode: false
Config found: /home/linux/.circleci/cli.yml
API host: https://circleci.com
API endpoint: graphql-unstable

Current behavior:

/tmp/hello.yml

version: 2.1

jobs:
  hello-job:
    docker:
      - image: cimg/node:17.2.0 # the primary container, where your job's commands are run
    steps:
      - checkout # check out the code in the project directory
      - run: echo "hello world" # run the `echo` command

workflows:
  my-workflow:
    jobs:
      - hello-job
$ circleci local execute hello-job --config /tmp/hello.yml
Fetching latest build environment...
Docker image digest: sha256:798518d02e27bacdc567990980517f81884097eab33635b1450571bc1a7feed9
docker: Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /tmp/3966974312_circleci_config.yml.
See 'docker run --help'.

Expected behavior:

Run image

When did this begin / Was this previously working?:

Additional Information:

miguelmota commented 5 months ago

It's working now after wiping config with rm -rf ~/.circleci and reinstalling the cli.