Docker Swarm代码分析笔记(10)——Cluster.validatePendingEngine
Cluster.validatePendingEngine是实际上用来连接Docker engine的代码: // validatePendingEngine connects to the engine, func (c *Cluster) validatePendingEngine(engine *cluster.Engine) bool { // Attempt a connection to the engine. Since this is slow, don't get a hold // of the lock yet. if err := engine.Connect(c.TLSConfig); err != nil { log.WithFields(log.Fields{"...阅读全文