ERROR: Service “xxx” uses an undefined network “xxx”

后端 未结 1 1442
野趣味
野趣味 2021-02-18 19:14

It keeps saying me that this network is undefined. ERROR: Service frontend-network uses an undefined network frontend-network However, I see that there

1条回答
  •  野的像风
    2021-02-18 19:45

    You need to add this network to the Compose file as external network like this:

    networks:
      frontend-network:
        external: true
    

    You can read about this in the docks here: https://docs.docker.com/compose/compose-file/#external-1.

    0 讨论(0)
提交回复
热议问题