소스 검색

docs: correct the placement constraints `docker service` example

- the constraint expression needs to be quoted
- add an actual redis container to run so the command line works

Signed-off-by: Anil Madhavapeddy <anil@docker.com>
Anil Madhavapeddy 9 년 전
부모
커밋
c37da1792d
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      docs/reference/commandline/service_create.md

+ 2 - 1
docs/reference/commandline/service_create.md

@@ -170,7 +170,8 @@ node type label equals queue:
 ```bash
 $ docker service create \
   --name redis_2 \
-  --constraint node.labels.type == queue
+  --constraint 'node.labels.type == queue' \
+  redis:3.0.6
 ```
 
 ## Related information