Under Docker Swarm mdoe, docker service logs are easy to fail. You can use the following command to solve it:
docker service logs -f $(docker service ls --format "{{.ID}}\t{{.Name}}" | grep dlaravel_php| cut -f1)
Here, above dlaravel_php is my service name.
To view your own service name, you can use the following command to view it
docker service ls
No Comment
Post your comment