Skip to content

Commit

Permalink
fix: Use bridge as the default networking mode (#986)
Browse files Browse the repository at this point in the history
- fixes an issue with Podman defaulting to a different type
  • Loading branch information
serverwentdown authored Mar 15, 2022
1 parent dd07011 commit bf01eb0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/runtimes/docker/translate.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ func TranslateNodeToContainer(node *k3d.Node) (*NodeInDocker, error) {
hostConfig := docker.HostConfig{
Init: &init,
ExtraHosts: node.ExtraHosts,
// Explicitly require bridge networking. Podman incorrectly uses
// slirp4netns when running rootless, therefore for rootless podman to
// work, this must be set.
NetworkMode: "bridge",
}
networkingConfig := network.NetworkingConfig{}

Expand Down

0 comments on commit bf01eb0

Please sign in to comment.