Skip to content

DockerComposeContainer may exit before the "is running" check #154

Closed

Description

@haines

I'm running a test in debug mode through IntelliJ and I think the execution is slow enough that the docker-compose process exits successfully before the check for isContainerRunning, so fails with "Container has already stopped."

Activity

  1. rnorth commented on Jun 5, 2016

    @rnorth
    Member

    Can you think of a way to reliably reproduce this? 😄

  2. haines commented on Jun 5, 2016

    @haines
    ContributorAuthor

    You could chuck a breakpoint in between the container starting and the running check to pause execution until docker-compose has exited?

  3. rnorth commented on Jun 5, 2016

    @rnorth
    Member

    I was thinking something more like an automated test 😉
    But yes, I can use this too.

    I suspect that #156 might have resolved this (though it's incomplete) - in any event I'll probably aim to fix this on the #156 branch.

  4. rnorth commented on Jun 11, 2016

    @rnorth
    Member

    Should be resolved in the #156 branch through use of OneShotStartupCheckStrategy

  5. modified the milestone: 1.1.0 on Jul 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions