Running "docker-compose up" throws "No module named fnctl" error on Windows
Setting:
- Windows 7
- Docker v1.6.0 installed as part of Boot2docker
- Docker-compose v1.2.0
I installed docker-compose using pip :
pip install docker-compose
And it seemed to have been successfully installed. However, when I try to run: docker-compose
up in the directory where I have the docker-compose.yml definition , I get the following exception:
Traceback (most recent call last):
File "c:\Python27\Scripts\docker-compose-script.py", line 9, in <module>
load_entry_point('docker-compose==1.2.0', 'console_scripts', 'docker-compose
')()
File "c:\Python27\lib\site-packages\pkg_resources.py", line 351, in load_entry
_point
return get_distribution(dist).load_entry_point(group, name)
File "c:\Python27\lib\site-packages\pkg_resources.py", line 2363, in load_entr
y_point
return ep.load()
File "c:\Python27\lib\site-packages\pkg_resources.py", line 2088, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "c:\Python27\lib\site-packages\compose\cli\main.py", line 11, in <module>
import dockerpty
File "c:\Python27\lib\site-packages\dockerpty\__init__.py", line 17, in <modul
e>
from dockerpty.pty import PseudoTerminal
File "c:\Python27\lib\site-packages\dockerpty\pty.py", line 21, in <module>
import dockerpty.io as io
File "c:\Python27\lib\site-packages\dockerpty\io.py", line 18, in <module>
import fcntl
ImportError: No module named fcntl
I understand from various non-docker posts that this error occurs because fcntl is native Linux and obviously my python windows distribution is missing it. However, the workarounds people talk about are not necessarily my personal business.
I've also tried the following steps here: https://github.com/docker/compose/releases
I downloaded the linux archive using curl (did not have uname permission) and gave the correct execution, but still:
$ docker-compose -version
./docker-compose: ./docker-compose: cannot execute binary file
Does anyone know of workarounds / actually functional ways to install docker-compose on VM Boot2docker?
You can run docker builds built on windows boot2docker.
You can installdocker compose
into containerdirectly in boot2docker
and use it that way.
See How to install docker-compose on Windows and issue 1085 .