Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Conversation

@mat007
Copy link
Contributor

@mat007 mat007 commented Jun 22, 2021

What I did

If com.docker.cli is not in the path, look for it next to the current running executable.

Related issue

Fixes #754

To test:

  1. with Docker Desktop installed make sure to move com.docker.cli out of the path by doing e.g. mv /Applications/Docker.app/Contents/Resources/bin/com.docker.cli /Applications/Docker.app/Contents/Resources/bin/com.docker.cli_
  2. build and run ./bin/docker version, it should error out with
$ ./bin/docker version
exec: "com.docker.cli": executable file not found in $PATH
Current PATH : (…)
  1. copy com.docker.cli into ./bin:
cp /Applications/Docker.app/Contents/Resources/bin/com.docker.cli_ ./bin/com.docker.cli
  1. re-run:
$ ./bin/docker version
Client:
Cloud integration: 2.0.0-beta.4-1-g949062d5
Version:           20.10.7
API version:       1.41
(̣̣…)

(not mandatory) A picture of a cute animal, if possible in relation with what you did

@mat007 mat007 requested a review from ndeloof June 22, 2021 07:44
@github-actions github-actions bot added the cli cli label Jun 22, 2021
@ndeloof
Copy link
Collaborator

ndeloof commented Jun 22, 2021

@mat007 OSS contributor have to sign-off commits (git commit -s)

@mat007 mat007 force-pushed the look-for-docker-cli-next-to-compose-cli branch from 949062d to 313de1d Compare June 22, 2021 08:39
@mat007
Copy link
Contributor Author

mat007 commented Jun 22, 2021

Oh sorry! Fixed.

@ndeloof ndeloof merged commit 966c4ae into docker-archive:main Jun 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cli cli

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CLI issues with ZSH on OS X: "com.docker.cli: executable file not found"

2 participants