diff --git a/runconfig/parse.go b/runconfig/parse.go index 8673993918..f4cec3fbf1 100644 --- a/runconfig/parse.go +++ b/runconfig/parse.go @@ -44,7 +44,7 @@ func parseRun(cmd *flag.FlagSet, args []string, sysInfo *sysinfo.SysInfo) (*Conf flPublish opts.ListOpts flExpose opts.ListOpts - flDns opts.ListOpts + flDns = opts.NewListOpts(opts.ValidateIpAddress) flDnsSearch = opts.NewListOpts(opts.ValidateDnsSearch) flVolumesFrom opts.ListOpts flLxcOpts opts.ListOpts