Skip to content

Step 3: Setting Up a Docker Bridge Network

Please note if you are using DSM7.2 or higher you should use the Container Manager version of this guide from the menu.
This guide has reached the end of its updates as most people are now on the latest DSM update - This guide is correct as of 08/12/2023 however no further updates will be added.

We are now going to set up a Docker Bridge Network, we are doing this for consistency across the guides here. It also allows us to have more control over the ports containers use in case we want to avoid certain port ranges that DSM uses.

While most containers will happily work without doing this step it is good practice to set up a specific Bridge rather than using the default bridge or Network Host mode.

Let’s Begin

Open up the Docker package and go into the Network tab.

Next click on ‘Add’ which brings up the settings screen. In here we are going to specify the following values.

SectionSetting
Network Namesynobridge (you can change this if you wish)
Use manual configuration
Subnet172.20.0.0/16
IP RangeLeave Blank
Gateway172.20.0.1

Now click ‘Add’ which will take you back to the original screen.

That’s it the Bridge is now ready for containers to be attached to it. You can go back to the guide you were following.

Optional Steps if you have the Synology Firewall Enabled

If you have the Synology Firewall enabled and configured to block incoming or outgoing connections you will need to do this step. Otherwise, you will have issues with your containers being able to contact each other.

Go into Control Panel > Security > Firewall

Click on Edit Rules and in the screen that appears click on ‘Create’

In the first screen select ‘All’ and ‘Specific IP’ then press ‘Select’

Then select ‘IP Range’ and enter ‘172.20.0.1’ in ‘From:’ and ‘172.20.255.254’ in ‘To:’

Press OK until you are back to the main Firewall screen and press Apply.

You can now go back to the guide you were following.

3 Comments

  1. Maddie Maddie

    Hi there, when trying to follow this guide on Container Manager w/ DSM 7.2+, it’s indicating I can’t leave the IP Range section blank. (It says ‘Invalid CIDR network address. The network address must follow CIDR format. ex. 172.17.0.0/16). Any ideas? Also your guides are so incredibly helpful as a budding Synology user <3

    • Dr_Frankenstein Dr_Frankenstein

      You are following the wrong guide 🙂 Go on the left menu for the Container Manager version, it would have been linked from the original guide you were following.

      • Maddie Maddie

        Oh well yeah I guess following the right guide would’ve helped some… Thanks so much I didn’t even notice that LOL

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

drfrankenstein.co.uk – writing Synology Docker Guides since 2016 – Join My Discord!