File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,23 @@ systemd.network.networks."20-lan" = {
83
83
};
84
84
```
85
85
86
+ ## Docker and systemd-network
87
+
88
+ If you use the above ` systemd.network ` bridge config and wish to run
89
+ Docker containers inside your microvms using ` virtualisation.docker ` ,
90
+ you may need to add the following snippet to stop ` systemd-networkd ` from
91
+ managing the bridged ` veth* ` interfaces Docker creates for each container.
92
+ Without this, network access inside the containers will be broken.
93
+
94
+ ``` nix
95
+ systemd.network.networks."19-docker" = {
96
+ matchConfig.Name = "veth*";
97
+ linkConfig = {
98
+ Unmanaged = true;
99
+ };
100
+ };
101
+ ```
102
+
86
103
## Advanced: Improving Performance
87
104
88
105
If you prioritize network performance over inter-VM communication on
You can’t perform that action at this time.
0 commit comments