daemon/create_unix.go
Method Daemon.createContainerOSSpecificSettings
has 7 return statements (exceeds 4 allowed). Open
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)
Method Daemon.populateVolume
has 7 return statements (exceeds 4 allowed). Open
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
}