Viewing and Inspecting Services
Let's view and inspect services running on a swarm.
The docker service ls
command
Run a docker service ls
command to see a list of all the services on your swarm.
Press + to interact
$ docker service lsID NAME MODE REPLICAS IMAGE PORTSz7o...uw web-fe replicated 5/5 Educative-Content/ddd... *:8080->8080/tcp
The output shows a single service along with some basic config and state info. Among other things, you can see the name of the service and that all five replicas are running. Some of the replicas might not be in the running state if you run the command too soon after deploying the service. This ...