cancel
Showing results for 
Search instead for 
Did you mean: 
riemann
Flight Engineer
Flight Engineer
  • 326 Views

do188, ch07s05, unnecessary networks given to two containers under point 4?

Hello,

In ch07s05, until point 4, all three containers have: 

--net compose-lab_default

When you only add at the end to the compose.yaml file networks:

services:

  ...

networks:
lab-net: {}

then you will see that all three containers have:

--net compose-lab_lab-net

So I do not understand why under 4 two containers are given networks:

services:
  wiremock:
  ...
    networks:
      - lab-net
  quotes-api:
    networks:
      - lab-net

I seems unnecessary to me.

Labels (1)
0 Replies
Join the discussion
You must log in to join this conversation.