Created
June 18, 2020 05:10
-
-
Save zcaudate/d63ee6b668f8ac0688d793d665b199c8 to your computer and use it in GitHub Desktop.
Docker Swarm Debug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM https://stackoverflow.com/questions/45372848/docker-swarm-how-to-find-out-why-service-cant-start | |
journalctl -u docker.service | tail -n 50 | |
It depends on your OS. Here are the few locations, with commands for few Operating Systems: | |
Ubuntu (old using upstart ) - /var/log/upstart/docker.log | |
Ubuntu (new using systemd ) - journalctl -u docker.service | |
Boot2Docker - /var/log/docker.log | |
Debian GNU/Linux - /var/log/daemon.log | |
CentOS - /var/log/daemon.log | grep docker | |
CoreOS - journalctl -u docker.service | |
Fedora - journalctl -u docker.service | |
Red Hat Enterprise Linux Server - /var/log/messages | grep docker | |
OpenSuSE - journalctl -u docker.service | |
OSX - ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/log/docker.log | |
Windows - Get-EventLog -LogName Application -Source Docker -After (Get-Date).AddMinutes(-5) | Sort-Object Time, as mentioned here. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment