-
Notifications
You must be signed in to change notification settings - Fork 0
How to Check a Dock Before Destruction
anandkumarpatel edited this page Mar 21, 2016
·
6 revisions
Docks don't just fail, there's always a root cause. Many times the "solution" to fixing a dock is to simply destroy it and replace it with a fresh and shiny new instance. To aid our understanding of the dock failure scenarios please follow this guide to get information about why the dock may have failed.
From the dock, run and record the output of the following:
- Memory usage:
free -ght
- Disk usage:
df -h
- Inodes:
df -hi
Copy and record the results of the following command:
sudo docker ps | grep swarm && sudo docker ps | grep weave sudo && docker ps | grep registry
You should see exactly three containers.
Download the logs from: /var/log/upstart/docker*
Download the dock-init logs: /var/log/user-script-dock-init.log
Download the logs: /var/log/krain.log