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
|
||||
$ 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