Skip to content

DockerComposeContainer.registerContainersForShutdown() not finding spawned containers #194

Closed

Description

@valdisrigdon

The listContainersCmd is returning 0 containers. If I run the same listContainersCmd without withLabelFilter, I can see my 3 containers listed.

This is connecting via docker-machine:

016-08-02 01:58:43,542 [main] INFO  org.testcontainers.DockerClientFactory - Connected to docker: 
  Server Version: 1.11.0
  API Version: 1.23
  Operating System: Boot2Docker 1.11.0 (TCL 7.0); HEAD : 32ee7e9 - Wed Apr 13 20:06:49 UTC 2016

Activity

  1. rnorth commented on Aug 6, 2016

    @rnorth
    Member

    Thanks - this is odd. I started using the label filter on name a little while ago, thinking it was cleaner than the previous fetch-then-filter approach.

    I wonder, could this be something to do with the leading slash in the filter ("name=/" + identifier) do you think? I recall having some trouble with presence of the slash being inconsistent in the past.

  2. valdisrigdon commented on Aug 10, 2016

    @valdisrigdon
    ContributorAuthor

    I tried with and without the slash, but couldn't get anything to come back. It was kind of strange. The command line docker ps with the --filter option worked.

  3. outofcoffee commented on Nov 19, 2016

    @outofcoffee
    Contributor

    @valdisrigdon @rnorth I fixed the enumeration of child container IDs in #233 - could you retest?

  4. bsideup commented on Jan 15, 2017

    @bsideup
    Member

    Hey @valdisrigdon, can we close this issue or it's still there?

  5. bsideup commented on Apr 11, 2018

    @bsideup
    Member

    Closing due to inactivity. We also improved the cleanup in 1.6.0 with "Death Note" feature (see #545 ).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions