diff --git a/daemon/libnetwork/drivers/remote/driver.go b/daemon/libnetwork/drivers/remote/driver.go index 5064062c0b..2bb8ba9c13 100644 --- a/daemon/libnetwork/drivers/remote/driver.go +++ b/daemon/libnetwork/drivers/remote/driver.go @@ -415,6 +415,7 @@ func (d *driver) ProgramExternalConnectivity(_ context.Context, nid, eid string, // revokeExternalConnectivity method is invoked to remove any external connectivity programming related to the endpoint. func (d *driver) revokeExternalConnectivity(nid, eid string) error { + d.nwEndpointsMu.Lock() ep, ok := d.nwEndpoints[eid] d.nwEndpointsMu.Unlock() if !ok {