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>
This commit is contained in:
parent
2c3797015f
commit
0cd7c6aa02
@ -158,16 +158,13 @@ service name.
|
|||||||
```bash
|
```bash
|
||||||
$ docker service create \
|
$ docker service create \
|
||||||
--name=myservice \
|
--name=myservice \
|
||||||
--mount \
|
--mount type=volume,source=test-data,target=/somewhere \
|
||||||
type=volume,source=test-data,target=/somewhere \
|
nginx:alpine
|
||||||
nginx:alpine \
|
|
||||||
myservice
|
|
||||||
|
|
||||||
myservice
|
myservice
|
||||||
|
|
||||||
$ docker service update \
|
$ docker service update \
|
||||||
--mount-add \
|
--mount-add type=volume,source=other-volume,target=/somewhere-else \
|
||||||
type=volume,source=other-volume,target=/somewhere-else \
|
|
||||||
myservice
|
myservice
|
||||||
|
|
||||||
myservice
|
myservice
|
||||||
|
Loading…
x
Reference in New Issue
Block a user