You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The README says that slirp4netns is the default network mode for rootless containers but that doesn't seem to be the case when testing and looking at the code. It seems the default is bridge even when running rootless containers. I stumbled into this when playing around with Nomad for the very first time so there's plenty of room for mistakes on my part.
Anyway my solution was to simply specify network_mode = "slirp4netns" in the config-section. This was tested on v0.2.0 release and 0502b79 (with bf21e15 reverted as it breaks with Podman 2.2.1), and I'd be happy to help test any patches.
stumbled upon this issue as well, for me the setup is:
Nomad v1.0.4 (9294f35f9aa8dbb4acb6e85fa88e3e2534a3e41a)
podman version 3.0.1 (c640670e85c4aaaff92741691d6a854a90229d8d)
also used the same workaround, at first thought was due to #92 but seems the rootless attribute is only used for display purposes in nomad ui 😆
fix#92 parse rootless info correctly from podman 3.0.x struct
fix#93 use slirp4netns as default network mode if running rootless
Bump supported podman version in README to 3.0.x
fix#92 parse rootless info correctly from podman 3.0.x struct
fix#93 use slirp4netns as default network mode if running rootless
Bump supported podman version in README to 3.0.x
Hi,
The README says that
slirp4netns
is the default network mode for rootless containers but that doesn't seem to be the case when testing and looking at the code. It seems the default isbridge
even when running rootless containers. I stumbled into this when playing around with Nomad for the very first time so there's plenty of room for mistakes on my part.Anyway my solution was to simply specify
network_mode = "slirp4netns"
in the config-section. This was tested on v0.2.0 release and 0502b79 (with bf21e15 reverted as it breaks with Podman 2.2.1), and I'd be happy to help test any patches.Nomad v1.0.4
Podman 2.2.1
Documentation:
https://github.com/hashicorp/nomad-driver-podman/blame/main/README.md#L240
Code:
nomad-driver-podman/driver.go
Line 433 in 0502b79
Thanks,
Andreas
The text was updated successfully, but these errors were encountered: