Separate Docker containers

AnosVoldigoad

Dabbler
Joined
Apr 4, 2021
Messages
17
Hi guys,

i want to run multiple docker under Truenas Scale which should be completely separate from each other. This means I want to have each Docker container in a separate VLAN so that they can't communicate with each other. Is this somehow possible?
 

Nick2253

Wizard
Joined
Apr 21, 2014
Messages
1,633
Short answer, no.

 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
You can do that with FreeBSD jails on TrueNAS CORE. Just sayin' :wink: So depending on your actual workload/applications that might be a road to investigate.
 

truecharts

Guru
Joined
Aug 19, 2021
Messages
788
Short answer, no.

The long answer is: Yes.
You can directly connect an interface to a container on our Apps and the Launch-Docker button.

You can also try to use kubernetes network policies to limit between-apps comunication.
 

Nick2253

Wizard
Joined
Apr 21, 2014
Messages
1,633
The long answer is: Yes.
Good to know. My understanding of the middle-ware is that it prevented you from being able to do something like that. Obviously, docker supports that, but there's a gulf between using the GUI, and having to manage everything from the CLI.
 

truecharts

Guru
Joined
Aug 19, 2021
Messages
788
Good to know. My understanding of the middle-ware is that it prevented you from being able to do something like that. Obviously, docker supports that, but there's a gulf between using the GUI, and having to manage everything from the CLI.

Actually, technically it should be possible just fine.
We already can create networkPolicy objects (it's not very well tested though) and both us and the Launch Docker button both support direct interface attachement as well :)
 

AnosVoldigoad

Dabbler
Joined
Apr 4, 2021
Messages
17
Thanks for the tips. I have assigned VLAN interfaces to the Docker, which can also be reached through them. Unfortunately, I have no idea how to prevent communication between the dockers. Is there a tutorial for this?
 

PackElend

Explorer
Joined
Sep 23, 2020
Messages
60
You can directly connect an interface to a container on our Apps and the Launch-Docker button.
, I have no idea how to prevent communication between the dockers
can you prevent communication between containers if you use VLAN interfaces?
1687964392540.png



Or can they still speak through Kubernetes internal network?
Does deactivating "Enable Integrated Loadbalancer" make any change?
 
Top