Skip to content

Instantly share code, notes, and snippets.

@asolera
Created April 16, 2021 18:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asolera/6975acf50aae6b726e4d87df48db466b to your computer and use it in GitHub Desktop.
Save asolera/6975acf50aae6b726e4d87df48db466b to your computer and use it in GitHub Desktop.
Docker swarm debug commands that shows errors on service deploy
#!/bin/bash
# Credits/thanks to: https://stackoverflow.com/questions/45372848/docker-swarm-how-to-find-out-why-service-cant-start
docker service ps --no-trunc {serviceName}
journalctl -u docker.service | tail -n 50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment