Skip to content

Incorrect network name showed with --x-networking #2345

Closed

Description

@arun-gupta

Started an application using https://github.com/arun-gupta/docker-images/blob/master/wildfly-mysql-javaee7/docker-compose.yml as:

docker-compose --x-networking up -d
Creating network "wildflymysqljavaee7" with driver "None"
Creating wildflymysqljavaee7_mywildfly_1
Creating db

The message shows network is created with driver "None" but listing the network as docker network ls shows otherwise:

> docker network ls
NETWORK ID          NAME                  DRIVER
a3c9994d6134        none                  null                
91537bec6510        host                  host                
b1770955e5aa        wildflymysqljavaee7   bridge              
6fda61934fbe        bridge                bridge  

Activity

  1. dnephin commented on Dec 1, 2015

    @dnephin

    The log message needs to check if there is no driver specified, and say "default" instead of "None"

  2. added this to the 1.6.0 milestone on Dec 4, 2015
  3. nicolaka commented on Dec 9, 2015

    @nicolaka

    @aanand @dnephin why is it that compose still creates an overlay network and names it $PROJECT_NAME even if all the services in docker-compose.yml file explicitly use a net: parameter that uses an existing overlay network ?

    Is this behavior handing with this issue?

  4. aanand commented on Dec 9, 2015

    @aanand

    We probably shouldn't create the default network if nothing is going to use it, yeah.

  5. dnephin commented on Dec 9, 2015

    @dnephin

    Ya, that should have already been fixed in #2341 (#2275) which was part of 1.5.1.

  6. dbonev commented on Dec 10, 2015

    @dbonev

    Sorry, if it's a stupid question, but is the expected behaviour here to just output "default" (literally) instead of "None"?
    I.e. in this particular case, what is the expected output:

    1. Creating network "wildflymysqljavaee7" with driver "default"
    2. Creating network "wildflymysqljavaee7" with driver "bridge"
      or maybe:
    3. Creating network "wildflymysqljavaee7" with the default driver

    Again, sorry if that's obvious -- I'm a newbie in compose.

    Thanks

  7. aanand commented on Dec 10, 2015

    @aanand

    Correct. (3) would be my preference.

  8. dbonev commented on Dec 10, 2015

    @dbonev

    #dibs

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

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions