diff options
author | Matthew Heon <matthew.heon@pm.me> | 2021-08-03 14:07:28 -0400 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2021-08-10 20:42:50 -0400 |
commit | a1afb2300f1a65a4213753c587ba8a7d66755423 (patch) | |
tree | 48bef237dd8a95f8652b6b1241e210b86a29a708 /test/e2e/common_test.go | |
parent | a82006160e6abbddc62f28999bca8865e5ea4806 (diff) | |
download | podman-a1afb2300f1a65a4213753c587ba8a7d66755423.tar.gz podman-a1afb2300f1a65a4213753c587ba8a7d66755423.tar.bz2 podman-a1afb2300f1a65a4213753c587ba8a7d66755423.zip |
Do not add an entry to /etc/hosts with `--net=host`
To match Docker's behavior, in the `--net=host` case, we need to
use the host's `/etc/hosts` file, unmodified (without adding an
entry for the container). We will still respect hosts from
`--add-host` but will not make any automatic changes.
Fortuntely, this is strictly a matter of removal and refactoring
as we already base our `/etc/hosts` on the host's version - just
need to remove the code that added entries when net=host was set.
Fixes #10319
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'test/e2e/common_test.go')
0 files changed, 0 insertions, 0 deletions