Fix incompatible flags conditional
Signed-off-by: willhf <willhf@gmail.com>
This commit is contained in:
parent
6dba2d01b5
commit
bc0cdc0a4c
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ func Parse(cmd *flag.FlagSet, args []string) (*Config, *HostConfig, *flag.FlagSe
|
|||
return nil, nil, cmd, ErrConflictHostNetworkAndDns
|
||||
}
|
||||
|
||||
if *flNetMode == "container" && flDns.Len() > 0 {
|
||||
if strings.HasPrefix(*flNetMode, "container") && flDns.Len() > 0 {
|
||||
return nil, nil, cmd, ErrConflictContainerNetworkAndDns
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue