dotcloud/docker

View on GitHub
daemon/create_unix.go

Summary

Maintainability
A
1 hr
Test Coverage

Method Daemon.createContainerOSSpecificSettings has 7 return statements (exceeds 4 allowed).
Open

func (daemon *Daemon) createContainerOSSpecificSettings(ctx context.Context, container *container.Container, config *containertypes.Config, hostConfig *containertypes.HostConfig) error {
    if err := daemon.Mount(container); err != nil {
        return err
    }
    defer daemon.Unmount(container)
Severity: Major
Found in daemon/create_unix.go - About 45 mins to fix

    Method Daemon.populateVolume has 7 return statements (exceeds 4 allowed).
    Open

    func (daemon *Daemon) populateVolume(ctx context.Context, c *container.Container, mnt *volumemounts.MountPoint) error {
        ctrDestPath, err := c.GetResourcePath(mnt.Destination)
        if err != nil {
            return err
        }
    Severity: Major
    Found in daemon/create_unix.go - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status