AKGeek Posted January 30, 2020 Share Posted January 30, 2020 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. Quote Link to comment
Squid Posted January 30, 2020 Share Posted January 30, 2020 AFAIK, you have to create a custom network bridge via the command line to accomplish this. It cannot be done via the GUI Quote Link to comment
AKGeek Posted January 31, 2020 Author Share Posted January 31, 2020 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 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.