February 21, 20197 yr Sorry if this is a simple question but I have a docker that I want to connect to two different networks. Is there a way to do this and if there is how would I do it. Currently I have 2 different Ethernet ports and for example one is running on 192.168.1.x and the other is on 192.168.2.x. Is there a way to get the container to be able to recognize devices on both networks? Currently I have the first network recognized but unsure how to get the other one. Edited February 21, 20197 yr by mgranger
February 21, 20197 yr I see no way of doing this. I would think you would spin up another instance of the Docker container for the 2nd network. I have a few instances of Plex running on different networks using this method.
February 22, 20197 yr Author seriously there is nothing that would allow me to access the 2nd network
February 22, 20197 yr 2 hours ago, mgranger said: seriously there is nothing that would allow me to access the 2nd network This is only possible thru CLI. Use this command docker network connect <network> <container>
February 23, 20197 yr Author On 2/22/2019 at 2:00 AM, bonienl said: docker network connect <network> <container> this is what i am getting when i run this root@Finalizer:~# docker network connect eth3 home-assistant Error response from daemon: network eth3 not found
February 24, 20197 yr what is the output of docker network ls Networks are defined under Settings -> Docker Or you can create your own user defined networks, make sure the setting "Preserve user defined networks = Yes"
Archived
This topic is now archived and is closed to further replies.