Added a command for getting the service

When you use `docker service ls`, it won't show you the list of services. Instead use `docker stack services getstartedlab` to show the service that was created and thereby getting the Service ID of it.
This commit is contained in:
Pavan Chilukuri 2019-02-07 21:03:16 -06:00 committed by GitHub
parent d2aa9877e9
commit 76a43be812
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -132,7 +132,13 @@ docker stack deploy -c docker-compose.yml getstartedlab
Our single service stack is running 5 container instances of our deployed image
on one host. Let's investigate.
Get the service ID for the one service in our application:
To get the services for a service stack, get the service ID for the one service in our application:
```shell
docker stack services getstartedlab
```
If you are using **Kubernetes**, get the service ID for the one service in our application:
```shell
docker service ls