From d8a902a167b91ca4fde4ffeef55e9aa4907ae258 Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Wed, 6 Apr 2022 11:55:40 +0200 Subject: API: use no_hosts from containers.conf The API endpoints should properly honour the `no_hosts=true` setting in containers.conf. Fixes #13719 Signed-off-by: Paul Holzinger --- cmd/podman/common/create_opts.go | 1 + 1 file changed, 1 insertion(+) (limited to 'cmd/podman/common') diff --git a/cmd/podman/common/create_opts.go b/cmd/podman/common/create_opts.go index ad6b3870a..39146f918 100644 --- a/cmd/podman/common/create_opts.go +++ b/cmd/podman/common/create_opts.go @@ -181,6 +181,7 @@ func ContainerCreateToContainerCLIOpts(cc handlers.CreateContainerConfig, rtc *c Network: nsmode, PublishPorts: specPorts, NetworkOptions: netOpts, + NoHosts: rtc.Containers.NoHosts, } // network names -- cgit v1.2.3-54-g00ecf