Giter Club home page Giter Club logo

Comments (5)

bf avatar bf commented on May 25, 2024

I feel the new docker compose also has hiccups when you define several networks for a service.
I think there is different behaviour between these two yaml definitions, even though they should be the same:

services:
  app:
    networks:
      - foo
      - bar

and

services:
  app:
    networks:
      foo:
      bar:

and

services:
  app:
    networks:
      foo:
         aliases:
            - breakingchanges
      bar:

and

services:
  app:
    networks:
      bar:
      foo:
         aliases:
            - breakingchanges

from compose-cli.

mzglinski avatar mzglinski commented on May 25, 2024

Having a similar issue, both mongo and proxy networks are external. Sometimes the containers will be attached to the mongo network, sometimes they will not. It is a bizarre behavior.

services:
  app:
    networks:
      - proxy
      - mongo

I do not see anything in the daemon logs that could be related to this. Rolling back to version 2.17.3 of docker compose plugin might have fixed the issue, but I will have to wait and see to be sure.

from compose-cli.

bf avatar bf commented on May 25, 2024

@mzglinski there was a docker-compose update released yesterday which fixes this bug. It was a "random" network interface not working bug for 5 days. I nearly went crazy.

Just update and check again please. Then we can close this issue.

from compose-cli.

mzglinski avatar mzglinski commented on May 25, 2024

@bf Oh, thanks for the heads up. 2.20 is not yet available in the Debian repository but I will update and check once it is.

from compose-cli.

mzglinski avatar mzglinski commented on May 25, 2024

Getting the update on Debian took a while, but I can confirm it is working as expected now.

from compose-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.