Important or Recent Updates
Historic Updates | Date |
---|---|
New DSM7.2 Container Manager Update | 22/04/2023 |
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 Container Manager 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.
Section | Setting |
---|---|
Network Name | synobridge (you can change this if you wish) |
IPv4 Configuration | Manual |
Subnet | 172.20.0.0/16 |
network: iprange | 172.20.0.0/16 |
Gateway | 172.20.0.1 |
Now click ‘Apply’ 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.
Hello! I am a total noob trying to get this set up. I am using docker (I think a different version than you show here) and there is no tab for “project”, though the rest looks pretty much the same. Do I need a different version, or is there another way to create a project?
Thanks for these guides! Very helpful!
Hey, it sounds like you have the ‘Docker’ package rather than ‘Container Manager’ either you need to update DSM to the latest version to get access to the new package or see my ‘Archive’ on the left menu with guides for the older docker package which should all stick work well.