diff options
Diffstat (limited to 'cmd/podman/create.go')
-rw-r--r-- | cmd/podman/create.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/podman/create.go b/cmd/podman/create.go index a1d3ead20..b95309980 100644 --- a/cmd/podman/create.go +++ b/cmd/podman/create.go @@ -593,6 +593,12 @@ func parseCreateOpts(c *cli.Context, runtime *libpod.Runtime, imageName string, return nil, errors.Errorf("cannot pass additional search domains when also specifying '.'") } + // Validate domains are good + for _, dom := range c.StringSlice("dns-search") { + if _, err := validateDomain(dom); err != nil { + return nil, err + } + } ImageVolumes := data.ContainerConfig.Volumes var imageVolType = map[string]string{ |