-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker-compose command not found #7345
Comments
@daeho-ro have you tried |
@dgageot It is, of course working but my question is why it is deleted even if the command is deprecated. I cannot find any statement and just want to know what happen. |
+1, running into this issue too 🙏 |
Same here. docker compose "$@" This however is now erroring as well: Error: spawn Unknown system error -8
Code: Unknown system error -8 |
Compose v2 can run standalone as |
@dgageot there is something wrong in the update process, the symlink should now point to the CLI plugin binary. I'll work with the Stability team to fix this |
As a workaround you can run the following command: sudo ln -sf /Applications/Docker.app/Contents/Resources/cli-plugins/docker-compose /usr/local/bin/docker-compose |
While this fixes the problem with running |
@LikeAJohny please report error running you application on github.com/docker/compose with error details so we can investigate |
@ndeloof Did so 👍 |
Closed the bug ticket since the error originated from an error on my behalf, sorry! |
Getting this too! |
Thank you so much ! |
Is this really an issue or should we just start using |
I'm following along with this question ☝🏻. |
We have a bunch of scripts executing |
Are there plans to fix this? I understand there may be intent for users to migrate to |
this should be fixed soon with Desktop 4.33 |
@pepijn-vanvlaanderen this could be an issue for users who have existing scripts for example, but if you're just running compose commands from your terminal you can safely use |
Correction: it is fixed. Looks like it's now in |
I would not consider this fixed. The update (and even re-installing) did not seem to update the symlink in usr/local/bin (it points to the |
Updated to 4.33.0 but I still had to manually run the following command to update the symlink
|
Can confirm the issue still exists with 4.33.0. |
Do you have the option "Automatically check configuration" enabled under Settings > General? Docker Desktop no longer requires the Administrator password to update. But if you have it installed on a System level (do a This recent blog post should give you a bit more information. |
I ran into the issue myself this morning and stumbled on this stack overflow answer that fixed the issue for me (I'm on Figured I'd post here to be helpful:
|
Docker Desktop setup creates symlink This issue should be closed AFAICT |
I still experience this problem when I upgrade. |
After docker compose v1 was eventually declared End of Life, we removed the feature for user to select compose v1 vs v2 as they run During an upgrade, Docker Desktop doesn't run a full installation, so user don't get disturbed by requirement to enter admin/root credentials. This limitation makes it impossible for the update script to change the symlink target. |
Are we going to have to recreate this symlink after every upgrade? |
nope, this is only required after first upgrade to remove compose v1/v2 switch option, which require symlink to change target. |
As mentioned in the Release Notes for Docker Desktop 4.32.0:
Docker Desktop also provides some UI to resolve symlink mismatches. Please read my comment above: #7345 (comment).
No, this was a one-time change. |
Just some feedback from a user of Docker: This decision cost us a lot of time and annoyance. It would've been much better to just prompt for the admin/root credentials instead of having to fiddle around with some Docker internals that I as a user should not have to fiddle around with. The problem occurred for every developer in our group which just multiplied the issue. If you do another upgrade like this please decide to release a working app instead of a subtly broken one. |
TLDR; In Settings, Advanced, toggle from In a new terminal session you'll see the |
Description
When upgrade docker to 4.32.0, there is no
docker-compose
command and I confirmed that the.app
package does not have one.I am not sure if this change is intentional or if it is a side effect of removing
com.docker.cli
. Can anyone confirm this?Reproduce
Expected behavior
No response
docker version
Client: Version: 27.0.3 API version: 1.46 Go version: go1.21.11 Git commit: 7d4bcd8 Built: Fri Jun 28 23:59:41 2024 OS/Arch: darwin/arm64 Context: desktop-linux Server: Docker Desktop 4.32.0 (157355) Engine: Version: 27.0.3 API version: 1.46 (minimum version 1.24) Go version: go1.21.11 Git commit: 662f78c Built: Sat Jun 29 00:02:44 2024 OS/Arch: linux/arm64 Experimental: false containerd: Version: 1.7.18 GitCommit: ae71819c4f5e67bb4d5ae76a6b735f29cc25774e runc: Version: 1.7.18 GitCommit: v1.1.13-0-g58aa920 docker-init: Version: 0.19.0 GitCommit: de40ad0
docker info
Diagnostics ID
67E16B9B-A03B-4D9E-8809-F784135F4E3D/20240707071016
Additional Info
No response
The text was updated successfully, but these errors were encountered: