January 30, 20206 yr I have a docker image where when I run it with a custom network it automatically sets the port mapping. Is there a way to disable this behavior so that I can define which ports to map? I need to have 2 docker images with the same IP address but with different ports.
January 30, 20206 yr AFAIK, you have to create a custom network bridge via the command line to accomplish this. It cannot be done via the GUI
January 31, 20206 yr Author Thanks for the reply, I have been trying to manually create a network using the below commands with parent being the network adapter of the secondary interface and opt being the ip address I want the port mapping to be made with however in the gui it still shows the main IP and it seems that no networking is happening. docker network create \ -o parent=br5 \ --driver bridge \ --opt 172.16.0.15 \ gaming-bridge
Archived
This topic is now archived and is closed to further replies.