Hi,
I am experiencing a problem with the command docker-compose.
I am on OS X 10.10.5, I just installed the new Docker Toolbox and try to run a docker-compose up
and I got an Illegal instruction: 4
error.
Even if I do a simple docker-compose --version
I got the same error. I tried to install by the CURL way and I've got the same error again.
Duplicate of #271
In summary: the Compose binary doesn't yet work on older Macs. The simplest workaround is to install using pip.
Do you mean at a material level ?
The mac i work on is a 2009 one…
No, older models. To be precise, it's your CPU. https://github.com/docker/compose/issues/271#issuecomment-113326266:
This is happening because by default, Homebrew builds Python with all of the optimizations that the build machine can support. Assuming the build is happening on a Mac with a Sandy Bridge or newer processor, those optimizations will include the use of AVX instructions.
I have the same issue.
I try to install docker-compose with git.
git clone https://github.com/docker/compose.git
cd compose
sudo python setup.py install
And it's work but, the up function return this message.
Couldn't connect to Docker daemon at http://localhost:4243 - is it running?
If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.
The referenced workaround brew install python; pip install docker-compose
worked for me (MacBook Pro Mid 2009).
Great! pip install docker-compose
worked awesome on my Macbook Core 2 duo mid 2009.
I had the same problem: pip install --upgrade docker-compose
fixed the error.
For anyone running into this issue and who find this page from Google: If the pip
method mentioned by @iiman doesn't work, I've setup an alternate repository that compiles docker-compose directly from an older mac. This way you can download a binary that should work on your system.
https://github.com/WidgetsBurritos/docker-compose-old-mac
The good thing with these binaries is they are forward compatible with newer Macs as well (at least so far).
These binaries are currently being used by Kalabox, so they don't have to worry about whether or not the user is on an old/new Mac. [See: kalabox/kalabox#901]
Actually after a bit of digging, it appears Docker fixed the issue in 1.7.0-rc1 so, my repository isn't necessary anymore. See: https://github.com/docker/compose/issues/271#issuecomment-201203732
Most helpful comment
Great!
pip install docker-compose
worked awesome on my Macbook Core 2 duo mid 2009.