dotcloud/docker

View on GitHub
runconfig/hostconfig.go

Summary

Maintainability
A
55 mins
Test Coverage

Function validateNetContainerMode has 9 return statements (exceeds 4 allowed).
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
    }
Severity: Major
Found in runconfig/hostconfig.go - About 55 mins to fix

    There are no issues that match your filters.

    Category
    Status