diff options
author | Paul Holzinger <pholzing@redhat.com> | 2021-09-16 12:37:06 +0200 |
---|---|---|
committer | Paul Holzinger <pholzing@redhat.com> | 2021-09-16 18:19:15 +0200 |
commit | f1ee234252768921313ddbbdbb7184585800bdbb (patch) | |
tree | 157ced3a14d7ef97f1ab059dc033d83c556cf0a5 /.dockerignore | |
parent | 9119a578e782b92bd344f093f5491c318bc20d69 (diff) | |
download | podman-f1ee234252768921313ddbbdbb7184585800bdbb.tar.gz podman-f1ee234252768921313ddbbdbb7184585800bdbb.tar.bz2 podman-f1ee234252768921313ddbbdbb7184585800bdbb.zip |
Only add 127.0.0.1 entry to /etc/hosts with --net=none
The check for net=none was wrong. It just assumed when we do not create
the netns but have one set that we use the none mode. This however also
applies to a container which joins the pod netns.
To correctly check for the none mode use `config.NetMode.IsNone()`.
Fixes #11596
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to '.dockerignore')
0 files changed, 0 insertions, 0 deletions