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:
Sebastiaan van Stijn 2024-01-22 21:44:38 +01:00 committed by GitHub
commit dde33d0dfe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 {