mirror of https://github.com/docker/docs.git
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:
parent
d2aa9877e9
commit
76a43be812
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue