runconfig/hostconfig.go
Function validateNetContainerMode
has 9 return statements (exceeds 4 allowed). Open
Open
func validateNetContainerMode(c *container.Config, hc *container.HostConfig) error {
// FIXME(thaJeztah): a network named "container" (without colon) is not seen as "container-mode" network.
if string(hc.NetworkMode) != "container" && !hc.NetworkMode.IsContainer() {
return nil
}