Skip to content

DockerComposeContainer not working for version 2 of compose format #146

Closed

Description

@jlordiales

Hi,
The DockerComposeContainer functionality seems to be broken if you are using the version 2 format of docker-compose where a new default network is created for each app.

The failing point seems to be the ambassador container, which fails to start with: "Error response from daemon: Cannot link to /5gcpep_api_1, as it does not belong to the default network".

Sample compose file:

version: '2'
services:
  db:
    image: postgres
    environment:
        POSTGRES_PASSWORD: test
        POSTGRES_USER: test
  api:
    build: .
    depends_on:
      - db

Activity

  1. rnorth commented on May 21, 2016

    @rnorth
    Member

    I think this is going to necessitate an upgrade to v3 of the docker-java library to benefit from docker-java/docker-java#425.

  2. rnorth commented on Jun 5, 2016

    @rnorth
    Member

    Branch refactoring work continues on this - the issue with compose v2 networks remains unfortunately. I believe the necessary network API support went into docker-java in the last few days, so I hope it will appear in RC6 of that library.

  3. jlordiales commented on Jun 5, 2016

    @jlordiales
    Author

    Sounds awesome! Looking forward to it

  4. rnorth commented on Jun 11, 2016

    @rnorth
    Member

    v2 networks should be working properly now in the branch for #156

  5. modified the milestone: 1.1.0 on Jul 2, 2016
  6. modified the milestone: 1.1.0 on Jul 5, 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