compose: docker-compose and docker-machine not working after installing Docker Desktop for Mac
Hi,
I have installed Docker Desktop for Mac on my Mac with macOS Sierra version 10.12.6
Docker is working fine but when I run “docker-compose --version” to check whether docker-compose is installed properly, it shows the following error:
[8807] Error loading Python lib ‘/Applications/Docker.app/Contents/Resources/bin/docker-compose/.Python’: dlopen: dlopen(/Applications/Docker.app/Contents/Resources/bin/docker-compose/.Python, 10): Symbol not found: _futimens Referenced from: /Applications/Docker.app/Contents/Resources/bin/docker-compose/.Python Expected in: /usr/lib/libSystem.B.dylib in /Applications/Docker.app/Contents/Resources/bin/docker-compose/.Python
And when I run the command “docker-machine --version”, it says command not found.
If you need more information, please let me know. I would appreciate if someone can help me on this as I am trying to use docker for my developments for the first time.
Thanks,
Mahfuz
- I have tried with the latest version of my channel (Stable or Edge)
- I have uploaded Diagnostics
- Diagnostics ID: C2A4874B-6D77-45B2-80E3-F3D0FACDA238/20200123220957
Expected behavior
docker-compose and docker-machine should be installed when Docker Desktop for Mac is installed.
Actual behavior
docker-compose and docker-machine commands are not running
Information
- macOS Version: macOS Sierra version 10.12.6
Diagnostic logs
Docker for Mac: version 12.2.0.0 (42247)
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 18
- Comments: 17 (3 by maintainers)
@chris-crone Thanks for the information. Just for information to anyone that comes across this issue. If you have installed Docker Desktop for Mac and facing this issue with docker-compose, you can just run the following commands to upgrade docker-compose to the latest release:
curl -L https://github.com/docker/compose/releases/download/1.25.4-rc2/docker-compose-`uname -s
-
uname -m` -o /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-composehey Guys,
Perhaps it helps someone. I got the same issue. I ran upgrade docker desktop client on my mac and everything went down. I use docker + dinghy and dinghy won’t start:
I installed docker-machine using brew and everything starts working again:
@rahman-mahfuz for Docker Compose, you can download the latest release (freshly baked by @ulyssessouza!) from here: https://github.com/docker/compose/releases/tag/1.25.4-rc2
You can find Docker Machine releases here: https://github.com/docker/machine/releases
I am also having this issue, same error shown for me after updating docker desktop and running “docker-compose --version” I installed the previous version here: https://docs.docker.com/docker-for-mac/release-notes/ and everything is working again.
Hi @qoalu!
The preferred method of getting Compose is through Desktop and this version. I just wanted to help unblock people who had issues. The next version of Desktop stable will have the 1.25.4 release.
https://docs.docker.com/compose/install/ still mentions that docker compose comes with docker desktop and offers to install it by downloading desktop.
same info under latest release of docker compose: https://github.com/docker/compose/releases/tag/1.25.4-rc2
This worked, but I had to put the actual file name found in the repo i.e.
curl -L https://github.com/docker/compose/releases/download/1.25.4-rc2/docker-compose-Darwin-x86_64 -o /usr/local/bin/docker-compose
The actual issue here might be in how the Docker Desktop is checking for and validating if there is a pending update. Docker Desktop![image](https://user-images.githubusercontent.com/593643/73203246-ae6bcc00-410a-11ea-84cf-66100f106722.png)
2.2.0.0
dropped support for macOS10.12
(Sierra) but at no point does it notify for that for existing installs (at least it didn’t for me). When I performed a reinstall, the “check for updates” process properly showed the warning that the next version was not supported: