diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-03-01 08:12:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-01 08:12:48 +0100 |
commit | 3417703a063cc71de60752836daf2ffec158d2f6 (patch) | |
tree | a6a1fe2ce80c30167c4f23850bdd19e474d236f3 /cmd/podman/common/netflags.go | |
parent | 9600ea6bef8000b0c45407409124c7df21050493 (diff) | |
parent | 680dacaea2c7c8150cb2a8c9770a6e981a1f5ebc (diff) | |
download | podman-3417703a063cc71de60752836daf2ffec158d2f6.tar.gz podman-3417703a063cc71de60752836daf2ffec158d2f6.tar.bz2 podman-3417703a063cc71de60752836daf2ffec158d2f6.zip |
Merge pull request #9527 from rhatdan/hosts
Enable no_hosts from containers.conf
Diffstat (limited to 'cmd/podman/common/netflags.go')
-rw-r--r-- | cmd/podman/common/netflags.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/common/netflags.go b/cmd/podman/common/netflags.go index bc4d54de0..4d0a554a6 100644 --- a/cmd/podman/common/netflags.go +++ b/cmd/podman/common/netflags.go @@ -80,7 +80,7 @@ func DefineNetFlags(cmd *cobra.Command) { _ = cmd.RegisterFlagCompletionFunc(publishFlagName, completion.AutocompleteNone) netFlags.Bool( - "no-hosts", false, + "no-hosts", containerConfig.Containers.NoHosts, "Do not create /etc/hosts within the container, instead use the version from the image", ) } |