summaryrefslogtreecommitdiff
path: root/cmd/podman/common.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@pm.me>2019-03-25 12:12:18 -0400
committerMatthew Heon <matthew.heon@pm.me>2019-03-27 10:12:18 -0400
commit236300d02832b1c131e5d70f3510e5169857b69b (patch)
tree627a606040676ff90771f7dff5a5a426c3015c06 /cmd/podman/common.go
parent16a7c7ff82e53bb29d03d816ffa53ae4ae29e86f (diff)
downloadpodman-236300d02832b1c131e5d70f3510e5169857b69b.tar.gz
podman-236300d02832b1c131e5d70f3510e5169857b69b.tar.bz2
podman-236300d02832b1c131e5d70f3510e5169857b69b.zip
Add --no-hosts flag to disable management of /etc/hosts
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'cmd/podman/common.go')
-rw-r--r--cmd/podman/common.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/podman/common.go b/cmd/podman/common.go
index 771738302..167b3e845 100644
--- a/cmd/podman/common.go
+++ b/cmd/podman/common.go
@@ -389,6 +389,10 @@ func getCreateFlags(c *cliconfig.PodmanCommand) {
"Connect a container to a network",
)
createFlags.Bool(
+ "no-hosts", false,
+ "Do not create /etc/hosts within the container, instead use the version from the image",
+ )
+ createFlags.Bool(
"oom-kill-disable", false,
"Disable OOM Killer",
)