Troubleshooting Connectivity Problems
Let's see how to check container and service logs for troubleshooting.
We'll cover the following...
A quick note on troubleshooting connectivity issues before moving on to service discovery.
Daemon logs and container logs can be useful when troubleshooting connectivity issues.
Daemon logs
If you’re running Windows containers, you can view them in the Windows Event Viewer or directly in ~\AppData\Local\Docker
. For Linux containers, it depends on which init system you’re using. If you’re running a systemd, Docker will post logs to journald and you can view them with the journalctl -u docker.service
command. If you’re using a different init system, you might want to check the following locations: