Replies: 1 comment 9 replies
-
As strange as it might sound, this is the first time I hear about "no networking" as use case. Probably most Podman users would use Or you need to show the container a pretense of networking setup, while your host is not actually connected? If that's the case, we should consider it as a possible use case, I guess.
Why? You're passing addresses and routes manually with
I would expect |
Beta Was this translation helpful? Give feedback.
-
After upgrading to Fedora Silverblue 40, I am currently using podman 5.0.2 and had to notice that the change to
pasta
as default network driver/mode unfortunately breaks my workflows. In particular, I often find myself working on the road, without any networking whatsoever. With slirp4netns this worked fine, with pasta this breaks by default as has apparently been discussed at length.I saw the following comment which describes a way around this problem. This is only a partial solution though, as pasta still needs the
-i
argument to know which host interface to derive addresses and routes from. Given this and the Podman 5.0 release announcement, mycontainers.conf
now looks like this:The interesting bit here is the
-i
option. First I tried filling in my network interface, but of course my interfaces are named differently across machines and, for example on my laptop, I usually have different interfaces connected depending on where I am. So I decided to just try out whetherlo
would work (as that's universally available) and apparently it does. With this setup I can ping from inside the container and reach e.g. websites withcurl
(so it also resolves DNS), provided any of my interfaces has a proper route set up.Is this intended behavior? Can I safely do that, or does that somehow expose other things and services also running on localhost to my container? What exactly does
pasta -i
do in this case and why does the interface matter?Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions