Merge pull request #2466 from thaJeztah/fix_service_create_example

service update: fix service create example
This commit is contained in:
Silvin Lubecki 2020-04-28 11:42:11 +02:00 committed by GitHub
commit 5f35b309e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 6 deletions

View File

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