9.5 Managing a Docker Swarm
To check the status of all running services
docker service lsTo scale a service that hasn't started, in order to check for bugs
docker service scale <service name e.g.: "opencrvs_metrics">=1You want to get all stack information and see if there are any errors
To check the logs on a service
docker service logs <service name e.g.: "opencrvs_metrics">To check logs or access a specific container
docker stack ps -f "desired-state=running" opencrvsdocker psYou need to check logs on the container
docker logs -f <container id e.g. "opencrvs_user-mgnt.1.t0178z73i4tjcll68a7r72enu">You need to run commands inside a container
You need to inspect a container to see networking and all other information
You need to rollback the changes made to a service
You need to take the stack down
Last updated