Skip to content

DockerComposeContainer fails due to updated docker-compose naming scheme #986

Closed

Description

@m-thread

As of the release of docker-compose 1.23.0 the naming scheme of container changed. See this issue for more information: docker/compose#6316

This seems to brake stuff in testcontainers DockerComposeContainer/SocatContainer implementation.
When trying to launch a docker-compose script we end up getting an exception like this: 'org.testcontainers.containers.ContainerLaunchException: Aborting attempt to link to container se2uw5jwht66_smtp-server_1 as it is not runnining'

This is due to the fact that the container name isn't really 'se2uw5jwht66_smtp-server_1' but rather 'se2uw5jwht66_smtp-server_1_e71d646caccf' following the new naming scheme in docker-compose.

Activity

  1. rnorth commented on Nov 22, 2018

    @rnorth
    Member

    Thanks @m-thread, yes, we've become aware of this unfortunate problem 😭. For now we'd recommend people hold back on updating local installations of docker-compose, and stay with 1.22.x.

    We'll need to implement a solution to this, as it looks like the new behaviour is here to stay.

  2. added this to the next milestone on Nov 22, 2018
  3. m-thread commented on Nov 30, 2018

    @m-thread
    Author

    New release of docker-compose today:
    https://github.com/docker/compose/releases/tag/1.23.2

    Seems like they backed off from the breaking change for now. At least partially.

  4. kiview commented on Nov 30, 2018

    @kiview
    Member

    Yes you are right, I will close this for now in the light of docker-compose 1.23.2 release.
    All Testcontainers user are advised to update their docker-compose version accordingly.

    Thanks to everyone contributing in this issue by providing details.

  5. removed this from the next milestone on Nov 30, 2018
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

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions