summaryrefslogtreecommitdiff
path: root/cmd/podman/network_create.go
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2019-10-03 15:22:40 -0500
committerbaude <bbaude@redhat.com>2019-10-28 12:52:30 -0500
commit2f6b8b94e87bb3645d34e59dd3b748dba4aa4d2c (patch)
tree5bf28fa1f061cb8193dc4e88e6c4e0144bd29e28 /cmd/podman/network_create.go
parentac73fd3fe5dcbf2647d589f9c9f37fe9531ed663 (diff)
downloadpodman-2f6b8b94e87bb3645d34e59dd3b748dba4aa4d2c.tar.gz
podman-2f6b8b94e87bb3645d34e59dd3b748dba4aa4d2c.tar.bz2
podman-2f6b8b94e87bb3645d34e59dd3b748dba4aa4d2c.zip
enable dnsplugin for network create
when users create a new network and the dnsname plugin can be found by podman, we will enable container name resolution on the new network. there is an option to opt *out* as well. tests cannot be added until we solve the packaging portion of the dnsname plugin. Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'cmd/podman/network_create.go')
-rw-r--r--cmd/podman/network_create.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/network_create.go b/cmd/podman/network_create.go
index 11f13faad..6710883ae 100644
--- a/cmd/podman/network_create.go
+++ b/cmd/podman/network_create.go
@@ -46,7 +46,7 @@ func init() {
// TODO enable when IPv6 is working
//flags.BoolVar(&networkCreateCommand.IPV6, "IPv6", false, "enable IPv6 networking")
flags.IPNetVar(&networkCreateCommand.Network, "subnet", net.IPNet{}, "subnet in CIDR format")
-
+ flags.BoolVar(&networkCreateCommand.DisableDNS, "disable-dns", false, "disable dns plugin")
}
func networkcreateCmd(c *cliconfig.NetworkCreateValues) error {