-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Duplicated settings in /etc/resolv.conf when set via containers.conf (Ubuntu 20.04) #13065
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Comments
I now manually compiled Podman with the version 4.0.0-dev and the problem seems to exist in this version too:
|
It seems to work as expected with the older version 3.2.3 on Ubuntu Focal. |
rhatdan
added a commit
to rhatdan/podman
that referenced
this issue
Feb 2, 2022
Fixes: containers#13065 Signed-off-by: Daniel J Walsh <[email protected]>
mheon
pushed a commit
to mheon/libpod
that referenced
this issue
Feb 3, 2022
Fixes: containers#13065 Signed-off-by: Daniel J Walsh <[email protected]>
patrycja-guzik
pushed a commit
to patrycja-guzik/podman
that referenced
this issue
Feb 15, 2022
Fixes: containers#13065 Signed-off-by: Daniel J Walsh <[email protected]>
github-actions
bot
added
the
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
label
Sep 21, 2023
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
/kind bug
Description
There seems to be a bug with custom DNS settings set through containers.conf files in Ubuntu 20.04 (and maybe higher).
Settings, which are applied via containers.conf files are being duplicated in
/etc/resolv.conf
.Steps to reproduce the issue:
The testing servers:
When the following configuration is set, all entries in the
/etc/resolv.conf
inside the freshly spawned containers are duplicated:If the same is done on the system with Ubuntu 18.04, it works as expected:
However, when I additionally set a DNS server via the command line, the nameservers are no longer duplicated but the
dns_search
parameter still is:If I add the flag
--dns-search
to the command too, I get these results:There are no additional settings regarding DNS either in
$HOME/.config/containers/containers.conf
nor in/usr/share/containers/containers.conf
.Describe the results you received:
already described above
Describe the results you expected:
The behavior in Ubuntu 18.04 is correct and it should be the same result in newer Ubuntu versions.
Additional information you deem important (e.g. issue happens only occasionally):
Can be reproduced every time.
Since one of the bigger differences between our Bionic and Focal instances is the storage engine, I tried it with
vfs
andoverlay
but the behavior was the same.Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)
Yes --> No mentioning of this issue in the troubleshooting guide and tested with the newest version available via the official repository. However, not tested with the newest version 3.4.4 resp. 4.0, since these are not yet available through a repository.
Additional environment details (AWS, VirtualBox, physical, etc.):
Virtual Machine (Nutanix with AHV supervisor)
The text was updated successfully, but these errors were encountered: