summaryrefslogtreecommitdiff
path: root/libpod/container_internal_linux.go
diff options
context:
space:
mode:
authorzhangguanzhang <zhangguanzhang@qq.com>2021-01-13 14:17:27 +0800
committerzhangguanzhang <zhangguanzhang@qq.com>2021-01-13 19:03:35 +0800
commit0cff5ad0a30cf7de1d4c23ca56a5670c7e2f1192 (patch)
treebc9846bd3c4f042b7b2f397389a62314bed6807d /libpod/container_internal_linux.go
parentf52a9eeeea75fe84fceb6aa347888d61a5cecd59 (diff)
downloadpodman-0cff5ad0a30cf7de1d4c23ca56a5670c7e2f1192.tar.gz
podman-0cff5ad0a30cf7de1d4c23ca56a5670c7e2f1192.tar.bz2
podman-0cff5ad0a30cf7de1d4c23ca56a5670c7e2f1192.zip
Fxes /etc/hosts duplicated every time after container restarted in a pod
Signed-off-by: zhangguanzhang <zhangguanzhang@qq.com>
Diffstat (limited to 'libpod/container_internal_linux.go')
-rw-r--r--libpod/container_internal_linux.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/container_internal_linux.go b/libpod/container_internal_linux.go
index 575047f95..ce2b52234 100644
--- a/libpod/container_internal_linux.go
+++ b/libpod/container_internal_linux.go
@@ -1742,7 +1742,7 @@ func (c *Container) generateHosts(path string) (string, error) {
// FIXME. Path should be used by this function,but I am not sure what is correct; remove //lint
// once this is fixed
func (c *Container) appendHosts(path string, netCtr *Container) (string, error) { //nolint
- return c.appendStringToRundir("hosts", netCtr.getHosts())
+ return c.appendStringToRunDir("hosts", netCtr.getHosts())
}
// getHosts finds the pertinent information for a container's host file in its config and state