IP-addresses and Docker-containers

Currently reading
IP-addresses and Docker-containers

262
51
NAS
DS923+ (16GB)
Router
  1. RT6600ax
Operating system
  1. Windows
Last edited:
I noticed my Docker-containers doesn't get local ip-addresses. My Plex installation gets a 172.17.x.x address and my MariaDb/phpMyAdmin aswell. Is there a way of fixing this? When watching Plex at home on my network it always transcodes because it thinks I'm not on the same network and it's a bit disturbing.
EDIT: I've checked the "network" tab in the Docker-UI and the "bridge"-alternative and I can see the IP-range there but I can't change it?
Thanks.
 
I noticed my Docker-containers doesn't get local ip-addresses.
That's normal for bridged and overlay networks.

My Plex installation gets a 172.17.x.x address and my MariaDb/phpMyAdmin aswell. Is there a way of fixing this?
You can. You need to create a docker macvlan network for this. Its slightly complicated and I am not going to share the commands required to do it. I am a container pro (I make my living with it) and I don't like it and I don't use it. There are not many use cases that realy require a macvlan. I am sure others will chip in and share what's needed to get things up and running.

When watching Plex at home on my network it always transcodes because it thinks I'm not on the same network and it's a bit disturbing.
You can either run your Plex container in the host network or set the "LAN networks" in PMS's settings -> network. My value is "192.168.200.0/255.255.255.0,172.16.0.0/255.240.0.0". My local LAN is 192.168.200.0, replace this one with yours.

EDIT: I've checked the "network" tab in the Docker-UI and the "bridge"-alternative and I can see the IP-range there but I can't change it?
Thanks.
You can't, it's immutable. Even if you could, containers on such a bridge would behave like they are on a switch that is not connected with the rest of your network.

Instead of tryting to enforce old patterns to docker, I highly recommend to learn and understand docker, and then start doing things the docker way...
 
Last edited:
You can. You need to create a docker macvlan network for this. Its slightly complicated and I am not going to share the commands required to do it. I am a container pro (I make my living with it) and I don't like it and I don't use it. There are not many use cases that realy require a macvlan. I am sure others will chip in and share what's needed to get things up and running.

Well as you know I do use macvlan eventough I'm a Docker noob. At first I had the idea the concept is like running a VM, but as a learned more and more about Docker I understand its indeed something VERY different.. But still, it's an amazing platform eventough it gives me a headache.

There is a topic were MACVLans has been discussed, here .
And here some more important information should you want to go the MACVLAN route...
You must also make adequate changes to your LAN network and DHCP settings.

I can point out I probably never really needed macvlan with everything I've been running so far....
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

Looks like I triggered you somehow with my post: it was not my intention. I have no idea whether bash or...
Replies
4
Views
408
Use bind volumes, and the CM Project feature. Hyper Backup can then backup the volumes, and with a copy of...
Replies
2
Views
322
Those are two different layers: one is the management ui to perform actions on the api. the other is the...
Replies
12
Views
544
Thanks for your replies, but I found the solution: I had to allow port 8083 in the firewall.
Replies
5
Views
505
Thank you for this - I'll give it a go and see where I get - worst case I learn something as I go!
Replies
6
Views
634
I have no idea what you are doing, but I just tested it based on the instructions of the guide you linked...
Replies
11
Views
1,377
Of course you can, and indeed as @Rusty already advised Gluetun is the way to go. I use it without issues...
Replies
5
Views
677

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Back
Top