CircleCI-Public / circleci-cli

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

Error: could not find `docker` on the PATH; please ensure that docker is installed #404

Open fsproru opened 4 years ago

fsproru commented 4 years ago

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

kienstra commented 3 years ago

Thanks for opening this! The same error appears in my local:

Error: could not find docker on the PATH; please ensure that docker is installed

samvmisti commented 3 years ago

I had the same issue. Installed docker application on my mac. Now no error.