mirror of https://github.com/docker/docs.git
disable cluster flag
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
This commit is contained in:
parent
8f50c0eb7a
commit
805b4763f4
11
flags.go
11
flags.go
|
@ -98,9 +98,10 @@ var (
|
|||
Usage: "filter to use [" + strings.Join(filter.List(), ", ") + "]",
|
||||
Value: &flFilterValue,
|
||||
}
|
||||
flCluster = cli.StringFlag{
|
||||
Name: "cluster, c",
|
||||
Usage: "cluster to use [swarm, mesos]",
|
||||
Value: "swarm",
|
||||
}
|
||||
|
||||
// flCluster = cli.StringFlag{
|
||||
// Name: "cluster, c",
|
||||
// Usage: "cluster to use [swarm, mesos]",
|
||||
// Value: "swarm",
|
||||
// }
|
||||
)
|
||||
|
|
2
main.go
2
main.go
|
@ -105,7 +105,7 @@ func main() {
|
|||
ShortName: "m",
|
||||
Usage: "manage a docker cluster",
|
||||
Flags: []cli.Flag{
|
||||
flStore, flCluster,
|
||||
flStore,
|
||||
flStrategy, flFilter,
|
||||
flHosts, flHeartBeat, flOverCommit,
|
||||
flTLS, flTLSCaCert, flTLSCert, flTLSKey, flTLSVerify,
|
||||
|
|
|
@ -66,6 +66,7 @@ func ApplyFilters(filters []Filter, config *dockerclient.ContainerConfig, nodes
|
|||
return nodes, nil
|
||||
}
|
||||
|
||||
// List returns the names of all the available filters
|
||||
func List() []string {
|
||||
names := []string{}
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ func init() {
|
|||
|
||||
// New is exported
|
||||
func New(name string) (PlacementStrategy, error) {
|
||||
if name == "binpacking" { //compat
|
||||
if name == "binpacking" { //TODO: remove this compat
|
||||
name = "binpack"
|
||||
}
|
||||
|
||||
|
@ -51,6 +51,7 @@ func New(name string) (PlacementStrategy, error) {
|
|||
return nil, ErrNotSupported
|
||||
}
|
||||
|
||||
// List returns the names of all the available strategies
|
||||
func List() []string {
|
||||
names := []string{}
|
||||
|
||||
|
|
Loading…
Reference in New Issue