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)

Most upvoted comments

@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-compose

hey 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:

vadim@mbp:~/workspace/webdevops/$ dinghy start
'docker-machine' command could not be found, please install.
Brew [brew install docker; brew install docker-machine] or The Docker Toolbox [https://www.docker.com/docker-toolbox] are two great options!

I installed docker-machine using brew and everything starts working again:

vadim@mbp:~/workspace/webdevops/$ brew install docker-machine

@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.

On desktop systems like Docker Desktop for Mac and Windows, Docker Compose is included as part of those desktop installs.

same info under latest release of docker compose: https://github.com/docker/compose/releases/tag/1.25.4-rc2

@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](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-compose

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 2.2.0.0 dropped support for macOS 10.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: image