Docker Community Forums

Share and learn in the Docker community.

Is anyone able to run docker-compose on a Mac?

docker

(Mraak) #1

Using OSX 10.11.1, first I installed the regular installer from Docker site and got this:

 → docker-compose --version 
Illegal Instruction: 4

Then I installed it through pip, the latest version, and got this.

    → docker-compose --version
Traceback (most recent call last):
  File "/usr/local/bin/docker-compose", line 9, in <module>
    load_entry_point('docker-compose==1.6.0dev', 'console_scripts', 'docker-compose')()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 357, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2394, in load_entry_point
    return ep.load()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2108, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/Library/Python/2.7/site-packages/compose/cli/main.py", line 20, in <module>
    from ..progress_stream import StreamOutputError
  File "/Library/Python/2.7/site-packages/compose/progress_stream.py", line 1, in <module>
    from compose import utils
  File "/Library/Python/2.7/site-packages/compose/utils.py", line 11, in <module>
    from six.moves.queue import Empty
ImportError: No module named queue

Was anyone able to make docker working on a Mac?


(Iiptyf) #2

Which version of docker toolbox are you using? Check out https://blog.docker.com/2015/11/docker-1-9-production-ready-swarm-multi-host-networking/ which just got released and contains a native docker-compose


(Mraak) #3

I already use DockerToolbox-1.9.0b. Or is there a newer version? If so, please give me a link, because the one you posted leads to DockerToolbox-1.9.0b.


(Amritms) #4

Adding this to my .bash_profile solved this issue for me.

export PYTHONPATH=/Library/Python/2.7/site-packages/:$PYTHONPATH

and

$ sudo easy_install bpython