From 0cd7c6aa0288e8219ba21ac24a92a09ab73d91e1 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 24 Apr 2020 13:42:04 +0200 Subject: [PATCH] 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 --- docs/reference/commandline/service_update.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/docs/reference/commandline/service_update.md b/docs/reference/commandline/service_update.md index 34559555e0..5eb8ded368 100644 --- a/docs/reference/commandline/service_update.md +++ b/docs/reference/commandline/service_update.md @@ -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