Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add hostname to /etc/hosts when running with host network #4869

Merged
merged 2 commits into from
Jun 21, 2023

Commits on Jun 20, 2023

  1. vendor: update c/common to latest

    Signed-off-by: Paul Holzinger <pholzing@redhat.com>
    Luap99 committed Jun 20, 2023
    Configuration menu
    Copy the full SHA
    eb135b8 View commit details
    Browse the repository at this point in the history
  2. add hostname to /etc/hosts when running with host network

    Some tools depend on the hostname being present in /etc/hosts. I would
    argue they are broken but its not like we can do anything about that.
    
    This adds the hostname with the local host ip when the host network is
    used. For private networking we already add the hostname.
    
    We also now correctly force host networking in chroot mode, it was
    silently ignored before thus causing extra confusion here.
    
    Fixes containers#4446
    
    Signed-off-by: Paul Holzinger <pholzing@redhat.com>
    Luap99 committed Jun 20, 2023
    Configuration menu
    Copy the full SHA
    14cd28c View commit details
    Browse the repository at this point in the history