-
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
containers.no_hosts is not considered by podman system service #13719
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
This was referenced Mar 30, 2022
I can reproduce this issue with MWE:
(The output is empty, as it should be)
The output still contains the hosts |
@Luap99 has been working on this. |
Luap99
added a commit
to Luap99/libpod
that referenced
this issue
Apr 11, 2022
The API endpoints should properly honour the `no_hosts=true` setting in containers.conf. Fixes containers#13719 Signed-off-by: Paul Holzinger <[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 20, 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.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
I use Jetbrains IntelliJ to connect to the Docker api. I don't have control on the way IntelliJ communicates with Docker.
All I can do is point IntelliJ to podman unix socket.
I want podman to behave like
Docker
regarding/etc/hosts
entries management.Docker
does not copy host/etc/hosts
entries to the container/etc/hosts
. I thought I would use https://docs.podman.io/en/latest/markdown/podman-run.1.html#no-hosts.But
containers.no_hosts=true
is not considered when running containers via the REST api (works otherwise).Steps to reproduce the issue:
Describe the results you received:
The container
/etc/hosts
contains entries coming from the host/etc/hosts
.Describe the results you expected:
I don't expect the host
/etc/hosts
entries to be copied to the container.Additional information you deem important (e.g. issue happens only occasionally):
Since podman does not exhibit the same behaviour as Docker, maybe there is also an additional bug about a wrong default to consider here.
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
The text was updated successfully, but these errors were encountered: