mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
commit
34db8513f8
1 changed files with 4 additions and 1 deletions
|
@ -665,7 +665,10 @@ func (n *network) driver(load bool) (driverapi.Driver, error) {
|
|||
|
||||
c := n.getController()
|
||||
n.Lock()
|
||||
n.scope = cap.DataScope
|
||||
// If load is not required, driver, cap and err may all be nil
|
||||
if cap != nil {
|
||||
n.scope = cap.DataScope
|
||||
}
|
||||
if c.cfg.Daemon.IsAgent {
|
||||
// If we are running in agent mode then all networks
|
||||
// in libnetwork are local scope regardless of the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue