mirror of https://github.com/docker/docs.git
fix SWARM_DISCOVERY env var
Signed-off-by: Victor Vieux <vieux@docker.com>
This commit is contained in:
parent
59fb880b75
commit
829bcb562d
|
@ -81,7 +81,7 @@ func manage(c *cli.Context) {
|
||||||
cluster := cluster.NewCluster(store, tlsConfig, c.Float64("overcommit"))
|
cluster := cluster.NewCluster(store, tlsConfig, c.Float64("overcommit"))
|
||||||
cluster.Events(&logHandler{})
|
cluster.Events(&logHandler{})
|
||||||
|
|
||||||
if !c.IsSet("discovery") {
|
if c.String("discovery") == "" {
|
||||||
log.Fatal("--discovery required to manage a cluster")
|
log.Fatal("--discovery required to manage a cluster")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue