Docker-compose path

Answered

Hello! I have problem during startup docker containers. Pycharm can't replace docker-compose and show that error:The command '/bin/sh -c mv /usr/bin/docker-compose /usr/bin/docker-compose-original' returned a non-zero code: 1. Real path of docker-compose on my machine is: /usr/local/bin/docker-compose I change path to docker-compose in docker settings for Pycharm but this action didn't affect on process of creation python SDK,Pycharm use old path.

My OS: Debian 9 Stretch

Pycharm: 2017.1

9
3 comments
Avatar
Permanently deleted user

Also seeing this behavior with Mac OS X Sierra (10.12.4).

1
Avatar
Permanently deleted user

It is nothing about your host's machine docker-compose.

Pycharm pulls "docker/compose" image and performs 

RUN mv /usr/bin/docker-compose /usr/bin/docker-compose-original
COPY usr/bin/ /usr/bin/
RUN chmod 755 /usr/bin/docker-compose

within. This does not work with " docker/compose:1.12.0".

 

How I fixed it: open "pycharm/plugins/Docker/lib/Docker-remote-run.jar". Edit "/docker-compose/Dockerfile.template":

<<<

- FROM docker/compose:$tag

===

+ FROM docker/compose:1.11.2

>>>

Hope, that will help you. If not - solution is somewhere within this jar.

0

Hi!

it is true that PyCharm uses docker-compose Docker image available at hub. Locally installed docker-compose utility is used to determine docker-compose version that should be downloaded.

Regarding the problem there is an issue with PyCharm 2017.1.1 and latest docker-compose versions. This issue has been fixed in PyCharm 2017.1.2. Please upgrade.

Thank you!

0

Please sign in to leave a comment.