Change SCALE to REPLICAS.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
(cherry picked from commit 4df0349948
)
This commit is contained in:
parent
e324ec639b
commit
41d72e28c3
4 changed files with 5 additions and 5 deletions
|
@ -71,7 +71,7 @@ func printTable(out io.Writer, services []swarm.Service) {
|
|||
// Ignore flushing errors
|
||||
defer writer.Flush()
|
||||
|
||||
fmt.Fprintf(writer, listItemFmt, "ID", "NAME", "SCALE", "IMAGE", "COMMAND")
|
||||
fmt.Fprintf(writer, listItemFmt, "ID", "NAME", "REPLICAS", "IMAGE", "COMMAND")
|
||||
for _, service := range services {
|
||||
scale := ""
|
||||
if service.Spec.Mode.Replicated != nil && service.Spec.Mode.Replicated.Replicas != nil {
|
||||
|
|
|
@ -14,7 +14,7 @@ import (
|
|||
|
||||
func newScaleCommand(dockerCli *client.DockerCli) *cobra.Command {
|
||||
return &cobra.Command{
|
||||
Use: "scale SERVICE=SCALE [SERVICE=SCALE...]",
|
||||
Use: "scale SERVICE=REPLICAS [SERVICE=REPLICAS...]",
|
||||
Short: "Scale one or multiple services",
|
||||
Args: scaleArgs,
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
|
|
|
@ -39,8 +39,8 @@ example, the tutorial uses a machine named `manager1`.
|
|||
```
|
||||
$ docker service ls
|
||||
|
||||
ID NAME SCALE IMAGE COMMAND
|
||||
2zs4helqu64f helloworld 1 alpine ping docker.com
|
||||
ID NAME REPLICAS IMAGE COMMAND
|
||||
2zs4helqu64f helloworld 1 alpine ping docker.com
|
||||
```
|
||||
|
||||
## What's next?
|
||||
|
|
|
@ -64,7 +64,7 @@ We can verify that services were correctly created:
|
|||
|
||||
```bash
|
||||
# docker service ls
|
||||
ID NAME SCALE IMAGE
|
||||
ID NAME REPLICAS IMAGE
|
||||
COMMAND
|
||||
29bv0vnlm903 vossibility-stack_lookupd 1 nsqio/nsq@sha256:eeba05599f31eba418e96e71e0984c3dc96963ceb66924dd37a47bf7ce18a662 /nsqlookupd
|
||||
4awt47624qwh vossibility-stack_nsqd 1 nsqio/nsq@sha256:eeba05599f31eba418e96e71e0984c3dc96963ceb66924dd37a47bf7ce18a662 /nsqd --data-path=/data --lookupd-tcp-address=lookupd:4160
|
||||
|
|
Loading…
Reference in a new issue