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

后端 未结 1 1433
野趣味
野趣味 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)
提交回复
热议问题