Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit d0c4d1b

Browse files
committed
service update: fix service create example
Service create expects the name to be passed using the `--name` flag, not as a positional parameter Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit 0cd7c6aa0288e8219ba21ac24a92a09ab73d91e1) Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: 0cfe29431c348d92323f176b702b199709f18a45 Component: cli
1 parent a281183 commit d0c4d1b

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

components/cli/docs/reference/commandline/service_update.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -158,16 +158,13 @@ service name.
158158
```bash
159159
$ docker service create \
160160
--name=myservice \
161-
--mount \
162-
type=volume,source=test-data,target=/somewhere \
163-
nginx:alpine \
164-
myservice
161+
--mount type=volume,source=test-data,target=/somewhere \
162+
nginx:alpine
165163

166164
myservice
167165

168166
$ docker service update \
169-
--mount-add \
170-
type=volume,source=other-volume,target=/somewhere-else \
167+
--mount-add type=volume,source=other-volume,target=/somewhere-else \
171168
myservice
172169

173170
myservice

0 commit comments

Comments
 (0)