Skip to content

Commit c9d1abd

Browse files
iofqastro
authored andcommitted
Add docker/systemd-networkd doc snippet
1 parent c3f2eb5 commit c9d1abd

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

doc/src/simple-network.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,23 @@ systemd.network.networks."20-lan" = {
8383
};
8484
```
8585

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+
86103
## Advanced: Improving Performance
87104

88105
If you prioritize network performance over inter-VM communication on

0 commit comments

Comments
 (0)