circleci-cli
circleci-cli copied to clipboard
Error: could not find `docker` on the PATH; please ensure that docker is installed
- [x] I have read Contribution Guidelines.
- [x] I have checked for similar issues and haven't found anything relevant.
- [x] This is not a security issue (which should be reported here: https://circleci.com/security/)
Do you want to request a feature or report a bug?
Report a bug
What is the current behavior?
Running circleci local execute throw an error instead of running a job locally
Can you provide an example?
docker run --rm -v $(pwd):/project-root -v /var/run/docker.sock:/var/run/docker.sock --workdir /project-root circleci/circleci-cli:alpine local execute
What is the expected behavior?
A default job named build runs.
Which version of the CLI and OS are you using? Did this work in previous versions?
CLI: 0.1.7179+e661c13 OS: macOS Catalina Not sure if it worked in the previous versions. It works locally, not in Docker though.
Please provide the output of 'circleci version' and 'circleci diagnostic'.
circleci version
CLI: 0.1.7179+e661c13
circleci diagnostic
---
CircleCI CLI Diagnostics
---
Debugger mode: false
Config found: `$HOME`/.circleci/cli.yml
API host: https://circleci.com
API endpoint: graphql-unstable
Error: please set a token with 'circleci setup'
You can create a new personal API token here:
https://circleci.com/account/api
Potential fix: https://github.com/CircleCI-Public/circleci-cli/pull/403
Thanks for opening this! The same error appears in my local:
Error: could not find
dockeron the PATH; please ensure that docker is installed
I had the same issue. Installed docker application on my mac. Now no error.