From 5172cfe6a5ab407e1cf90a6155e575c16114adba Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Thu, 21 Jan 2021 14:59:39 +0100 Subject: rootlessport: set source IP to slirp4netns device set the source IP to the slirp4netns address instead of 127.0.0.1 when using rootlesskit. Closes: https://github.com/containers/podman/issues/5138 Signed-off-by: Giuseppe Scrivano --- libpod/networking_linux.go | 1 + 1 file changed, 1 insertion(+) (limited to 'libpod') diff --git a/libpod/networking_linux.go b/libpod/networking_linux.go index 94b8563fe..18ea78564 100644 --- a/libpod/networking_linux.go +++ b/libpod/networking_linux.go @@ -547,6 +547,7 @@ func (r *Runtime) setupRootlessPortMappingViaRLK(ctr *Container, netnsPath strin ExitFD: 3, ReadyFD: 4, TmpDir: ctr.runtime.config.Engine.TmpDir, + ChildIP: "10.0.2.100", } cfgJSON, err := json.Marshal(cfg) if err != nil { -- cgit v1.2.3-54-g00ecf