ソースを参照

Merge pull request #2307 from kylewuolle/fix-agent-init-problem

Fix for problem where agent is stopped and does not restart
Flavio Crisciani 6 年 前
コミット
4c015269c5
1 ファイル変更3 行追加0 行削除
  1. 3 0
      libnetwork/agent.go

+ 3 - 0
libnetwork/agent.go

@@ -378,6 +378,9 @@ func (c *controller) agentClose() {
 	c.agent = nil
 	c.Unlock()
 
+	// when the agent is closed the cluster provider should be cleaned up
+	c.SetClusterProvider(nil)
+
 	if agent == nil {
 		return
 	}