1
0
mirror of https://github.com/docker/cli.git synced 2026-01-13 18:22:35 +03:00

Default to replicated mode

Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
Aanand Prasad
2016-11-02 13:10:34 +00:00
committed by Daniel Nephin
parent dfab8f2bd4
commit 25c93d4ebb

View File

@@ -516,7 +516,7 @@ func convertDeployMode(mode string, replicas *uint64) (swarm.ServiceMode, error)
return serviceMode, fmt.Errorf("replicas can only be used with replicated mode")
}
serviceMode.Global = &swarm.GlobalService{}
case "replicated":
case "replicated", "":
serviceMode.Replicated = &swarm.ReplicatedService{Replicas: replicas}
default:
return serviceMode, fmt.Errorf("Unknown mode: %s", mode)