Merge pull request #47172 from thaJeztah/25.0_backport_fix-bad-http-code
[25.0 backport] daemon: return an InvalidParameter error when ep settings are wrong
This commit is contained in:
commit
dde33d0dfe
1 changed files with 1 additions and 1 deletions
|
@ -648,7 +648,7 @@ func (daemon *Daemon) updateNetworkConfig(container *container.Container, n *lib
|
|||
}
|
||||
|
||||
if err := validateEndpointSettings(n, n.Name(), endpointConfig); err != nil {
|
||||
return err
|
||||
return errdefs.InvalidParameter(err)
|
||||
}
|
||||
|
||||
if updateSettings {
|
||||
|
|
Loading…
Reference in a new issue