Skip to content

Commit

Permalink
Add docker/systemd-networkd doc snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
iofq authored and astro committed Feb 21, 2024
1 parent c3f2eb5 commit c9d1abd
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions doc/src/simple-network.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,23 @@ systemd.network.networks."20-lan" = {
};
```

## Docker and systemd-network

If you use the above `systemd.network` bridge config and wish to run
Docker containers inside your microvms using `virtualisation.docker`,
you may need to add the following snippet to stop `systemd-networkd` from
managing the bridged `veth*` interfaces Docker creates for each container.
Without this, network access inside the containers will be broken.

```nix
systemd.network.networks."19-docker" = {
matchConfig.Name = "veth*";
linkConfig = {
Unmanaged = true;
};
};
```

## Advanced: Improving Performance

If you prioritize network performance over inter-VM communication on
Expand Down

0 comments on commit c9d1abd

Please sign in to comment.