Communicating between Docker containers in different networks on the same host

后端 未结 3 1086
逝去的感伤
逝去的感伤 2020-12-15 21:05

Any possibility to make containers in different networks within the same host to communicate? Please note that I am not using docker-compose at the moment.<

3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-15 21:37

    According to Docker Docs Containers can only communicate within networks but not across networks You can attach a container to two networks and be able to communicate that way.

    edit: Although at that point why have two networks in the first place.

    Here's the link:

    https://docs.docker.com/engine/userguide/networking/dockernetworks/

    -Bruce

提交回复
热议问题