Signed-off-by: Daniel Nephin <dnephin@docker.com>
| ... | ... |
@@ -71,7 +71,7 @@ func printTable(out io.Writer, services []swarm.Service) {
|
| 71 | 71 |
// Ignore flushing errors |
| 72 | 72 |
defer writer.Flush() |
| 73 | 73 |
|
| 74 |
- fmt.Fprintf(writer, listItemFmt, "ID", "NAME", "SCALE", "IMAGE", "COMMAND") |
|
| 74 |
+ fmt.Fprintf(writer, listItemFmt, "ID", "NAME", "REPLICAS", "IMAGE", "COMMAND") |
|
| 75 | 75 |
for _, service := range services {
|
| 76 | 76 |
scale := "" |
| 77 | 77 |
if service.Spec.Mode.Replicated != nil && service.Spec.Mode.Replicated.Replicas != nil {
|
| ... | ... |
@@ -14,7 +14,7 @@ import ( |
| 14 | 14 |
|
| 15 | 15 |
func newScaleCommand(dockerCli *client.DockerCli) *cobra.Command {
|
| 16 | 16 |
return &cobra.Command{
|
| 17 |
- Use: "scale SERVICE=SCALE [SERVICE=SCALE...]", |
|
| 17 |
+ Use: "scale SERVICE=REPLICAS [SERVICE=REPLICAS...]", |
|
| 18 | 18 |
Short: "Scale one or multiple services", |
| 19 | 19 |
Args: scaleArgs, |
| 20 | 20 |
RunE: func(cmd *cobra.Command, args []string) error {
|
| ... | ... |
@@ -39,8 +39,8 @@ example, the tutorial uses a machine named `manager1`. |
| 39 | 39 |
``` |
| 40 | 40 |
$ docker service ls |
| 41 | 41 |
|
| 42 |
- ID NAME SCALE IMAGE COMMAND |
|
| 43 |
- 2zs4helqu64f helloworld 1 alpine ping docker.com |
|
| 42 |
+ ID NAME REPLICAS IMAGE COMMAND |
|
| 43 |
+ 2zs4helqu64f helloworld 1 alpine ping docker.com |
|
| 44 | 44 |
``` |
| 45 | 45 |
|
| 46 | 46 |
## What's next? |
| ... | ... |
@@ -64,7 +64,7 @@ We can verify that services were correctly created: |
| 64 | 64 |
|
| 65 | 65 |
```bash |
| 66 | 66 |
# docker service ls |
| 67 |
- ID NAME SCALE IMAGE |
|
| 67 |
+ ID NAME REPLICAS IMAGE |
|
| 68 | 68 |
COMMAND |
| 69 | 69 |
29bv0vnlm903 vossibility-stack_lookupd 1 nsqio/nsq@sha256:eeba05599f31eba418e96e71e0984c3dc96963ceb66924dd37a47bf7ce18a662 /nsqlookupd |
| 70 | 70 |
4awt47624qwh vossibility-stack_nsqd 1 nsqio/nsq@sha256:eeba05599f31eba418e96e71e0984c3dc96963ceb66924dd37a47bf7ce18a662 /nsqd --data-path=/data --lookupd-tcp-address=lookupd:4160 |