Skip to content

Commit 3a6909a

Browse files
author
Mano Marks
authored
Merge pull request docker#243 from fvhovell/patch-1
Cannot scale network in a stack
2 parents 01e4468 + cf27ab3 commit 3a6909a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

developer-tools/java/chapters/ch06-swarm.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ Complete set of commands are shown at https://github.com/docker/labs/blob/master
337337

338338
If you only want to stop the application temporarily while keeping any networks that were created as part of this application, the recommended way is to set the amount of service replicas to 0.
339339

340-
`docker service scale webapp_db=0 webapp_web=0 webapp_default=0`
340+
`docker service scale webapp_db=0 webapp_web=0`
341341

342342
This is especially useful if the stack contains volumes and you want to keep the data. It allows you to simply start the stack again with setting the replicas to a number higher than 0.
343343

0 commit comments

Comments
 (0)