diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2021-01-21 14:59:39 +0100 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2021-01-22 08:08:26 +0100 |
commit | 5e65f0ba30f3fca73f8c207825632afef08378c1 (patch) | |
tree | e9236d523b5c333d97125c0c8071fe751f90996f /libpod/networking_linux.go | |
parent | 37319dec1771aaa9764c81359f439e862f45d8e1 (diff) | |
download | podman-5e65f0ba30f3fca73f8c207825632afef08378c1.tar.gz podman-5e65f0ba30f3fca73f8c207825632afef08378c1.tar.bz2 podman-5e65f0ba30f3fca73f8c207825632afef08378c1.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 addf1814c..6f56d2f8f 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 { |