mirror of https://github.com/docker/cli.git
Merge pull request #2466 from thaJeztah/fix_service_create_example
service update: fix service create example
This commit is contained in:
commit
5f35b309e7
|
@ -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…
Reference in New Issue