docker-maven-plugin: docker:start always blocks on windows

Description

Whenever I use docker:start on windows it’s always blocking build execution although docker container was successfully started and wait condition satisfied.

I’m using the latest plugin version. I tried explicitly specify docker.follow=false - didn’t help. The same config works fine with docker for OSX.

Info

  • d-m-p version : 0.27.1
  • Maven version (mvn -v) : 3.5.4
  • Docker version : 18.06.1-ce-win73
  • If it’s a bug, how to reproduce : My docker execution config looks like this:
            <plugin>
                <groupId>io.fabric8</groupId>
                <artifactId>docker-maven-plugin</artifactId>
                <version>0.27.1</version>
                <configuration>
                    <images>
                        <image>
                            <name>localstack/localstack:0.8.7</name>
                            <run>
                                <env>
                                    <SERVICES>dynamodb</SERVICES>
                                </env>
                                <ports>
                                    <port>4569:4569</port>
                                </ports>
                                <log/>
                                <wait>
                                    <log>^Ready\.$</log>
                                </wait>
                            </run>
                        </image>
                    </images>
                    <skip>${skipTests}</skip>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>start</goal>
                            <goal>stop</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

then execution docker:start -X will show that waitcondition was met, execution returned 0 and then process hangs.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 25 (19 by maintainers)

Commits related to this issue

Most upvoted comments

Yes, I have just created the merge request.

I’ve released 0.36.1 with @ncelerier 's fix.

@SimY4 @jeacott1 @ebouvi01: Could you please help us out by trying out 0.36.1 on windows and providing feedback on whether this issue is resolved or not whenever you have some time? If it’s working we can go ahead and close this.

I’m on Linux and for me start, stop and log goals seem to be working okay with your changes. I’d say let’s get your change in and see if causes any problems for other users.

Hi, running the 0.24 version fixed my problem.

Looks like https://github.com/fabric8io/docker-maven-plugin/pull/904 was lost in 0.25 and upwards.