Docker Networking Options

spacenoob

Dabbler
Joined
Aug 25, 2021
Messages
27
Hello guys,

Lets say that I want to avoid truecharts and want to run docker containers instead.
Is it possible to change the network configuration so that my containers get access to my local network (same network, IPs, DNS etc.)

I couldn't find anything about it online that is not refering to running docker containers on top of another virtualised OS like Ubuntu.
So is it rly not possible?

Thanks
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
You want a docker container (that isn't a TrueCharts App) to have its own IP address on your network?

Fine...

Use Launch Docker Image:

Under the networking section, elect to Add and External Interface.

Select your IPAM type (DHCP or static).

Set/add a route of 0.0.0.0 to your network's router.

Configure the rest of your settings and save it.

Be aware that this is a sort of "hack" and will result in all traffic to/from the container to other locations on your net traversing your router to get there.
 

spacenoob

Dabbler
Joined
Aug 25, 2021
Messages
27
You want a docker container (that isn't a TrueCharts App) to have its own IP address on your network?

Fine...

Use Launch Docker Image:

Under the networking section, elect to Add and External Interface.

Select your IPAM type (DHCP or static).

Set/add a route of 0.0.0.0 to your network's router.

Configure the rest of your settings and save it.

Be aware that this is a sort of "hack" and will result in all traffic to/from the container to other locations on your net traversing your router to get there.
I'm sort of questioning TrueNas (Scale) as a Host for Containers, because there isn't rly anything ideal.
The Truecharts guys just kinda do what they want and the docker images are limited.

So what are you gonna use? Set up a separate VM just for Containers?
At that point you can set up Proxmox on another PC or smth.

idk...
 
Top