Deploying and Managing Services at Scale with Docker Swarm
94%
Docker Swarm Logging
Docker Swarm has a built-in logging system that allows you to see logs from all the services in the cluster. However, logs are not stored and should be sent to an external logging system like ELK or Loki.
This is how to see the logs of a service:
docker service logs my-stack_wordpress
To follow the logs, use the following command:
docker service logs -f my-stack_wordpress
# or docker service logs --follow my-stack_wordpress
You can see logs since a specific time using the --since option:
Painless Docker - 2nd Edition
A Comprehensive Guide to Mastering Docker and its EcosystemEnroll now to unlock all content and receive all future updates for free.
Unlock now  $31.99$25.59Learn More
Hurry! This limited time offer ends in:
To redeem this offer, copy the coupon code below and apply it at checkout:
