DEV Community

Discussion on: Install Jenkins using Docker Compose

Collapse
 
paranoiasystem profile image
Marco Ferraioli • Edited

hello I have add this

- /usr/bin/docker-compose:/usr/bin/docker-compose

to my docker-compose file but when I run a docker-compose -v get this error to me

+ docker-compose -v
Traceback (most recent call last):
  File "/usr/bin/docker-compose", line 15, in <module>
    from pkg_resources import load_entry_point
ImportError: No module named pkg_resources
Build step 'Execute shell' marked build as failure
Finished: FAILURE
Enter fullscreen mode Exit fullscreen mode
Collapse
 
paranoiasystem profile image
Marco Ferraioli

I have reinstalled docker-compose and now work

Collapse
 
oaztech profile image
Oussama ANDALOUSSI

use this cmd "whereis docker-compose" to find location of docker-compose befor mapped to jenkins container