From 5270cd89d33203ffc3239be2b5ed1b60afd9d867 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Thu, 8 Aug 2019 14:54:19 -0400 Subject: Allow the passing of '.' to --dns-search --dns-search is defined to remove all search domains from a container. Signed-off-by: Daniel J Walsh --- cmd/podman/shared/create.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cmd') diff --git a/cmd/podman/shared/create.go b/cmd/podman/shared/create.go index 8e356cbcb..7dccc41f1 100644 --- a/cmd/podman/shared/create.go +++ b/cmd/podman/shared/create.go @@ -629,6 +629,9 @@ func ParseCreateOpts(ctx context.Context, c *GenericCLIResults, runtime *libpod. // Validate domains are good for _, dom := range c.StringSlice("dns-search") { + if dom == "." { + continue + } if _, err := parse.ValidateDomain(dom); err != nil { return nil, err } -- cgit v1.2.3-54-g00ecf