fix: Use bridge as the default networking mode (#986)

- fixes an issue with Podman defaulting to a different type
pull/987/head^2
Ambrose Chua 3 years ago committed by GitHub
parent dd07011f00
commit bf01eb08ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      pkg/runtimes/docker/translate.go

@ -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{}

Loading…
Cancel
Save