diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2021-01-21 14:59:39 +0100 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2021-02-03 15:46:26 -0500 |
commit | 5172cfe6a5ab407e1cf90a6155e575c16114adba (patch) | |
tree | d89887ab6feef94a84d9b7889f3535589cb541f2 /libpod/networking_linux.go | |
parent | 4dbcb1f925d011aa637bf876d83e6f707aaa7a2e (diff) | |
download | podman-5172cfe6a5ab407e1cf90a6155e575c16114adba.tar.gz podman-5172cfe6a5ab407e1cf90a6155e575c16114adba.tar.bz2 podman-5172cfe6a5ab407e1cf90a6155e575c16114adba.zip |
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 <gscrivan@redhat.com>
Diffstat (limited to 'libpod/networking_linux.go')
-rw-r--r-- | libpod/networking_linux.go | 1 |
1 files changed, 1 insertions, 0 deletions
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 { |