mirror of https://github.com/docker/docs.git
Merge pull request #608 from bfirsh/use-random-strategy-for-swarms
Use random strategy for Swarms
This commit is contained in:
commit
502945f577
2
host.go
2
host.go
|
@ -147,7 +147,7 @@ func (h *Host) ConfigureSwarm(discovery string, master bool, host string, addr s
|
|||
tlsCaCert := path.Join(basePath, "ca.pem")
|
||||
tlsCert := path.Join(basePath, "server.pem")
|
||||
tlsKey := path.Join(basePath, "server-key.pem")
|
||||
masterArgs := fmt.Sprintf("--tlsverify --tlscacert=%s --tlscert=%s --tlskey=%s -H %s %s",
|
||||
masterArgs := fmt.Sprintf("--tlsverify --tlscacert=%s --tlscert=%s --tlskey=%s -H %s --strategy random %s",
|
||||
tlsCaCert, tlsCert, tlsKey, host, discovery)
|
||||
nodeArgs := fmt.Sprintf("--addr %s %s", addr, discovery)
|
||||
|
||||
|
|
Loading…
Reference in New Issue