mirror of https://github.com/docker/cli.git
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 0cd7c6aa02
)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
2dc593f67f
commit
0cfe29431c
|
@ -158,16 +158,13 @@ service name.
|
|||
```bash
|
||||
$ docker service create \
|
||||
--name=myservice \
|
||||
--mount \
|
||||
type=volume,source=test-data,target=/somewhere \
|
||||
nginx:alpine \
|
||||
myservice
|
||||
--mount type=volume,source=test-data,target=/somewhere \
|
||||
nginx:alpine
|
||||
|
||||
myservice
|
||||
|
||||
$ docker service update \
|
||||
--mount-add \
|
||||
type=volume,source=other-volume,target=/somewhere-else \
|
||||
--mount-add type=volume,source=other-volume,target=/somewhere-else \
|
||||
myservice
|
||||
|
||||
myservice
|
||||
|
|
Loading…
Reference in New Issue