https://github.com/pdevine/dsinfo
https://github.com/pdevine/dsinfo
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pdevine/dsinfo
- Owner: pdevine
- License: apache-2.0
- Created: 2015-07-31T22:08:01.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-05T01:45:16.000Z (over 10 years ago)
- Last Synced: 2025-03-28T08:30:52.174Z (about 1 year ago)
- Language: Shell
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dsinfo
Docker/System information collection script to assist with troubleshooting.
### Note
Debug logging is extremely helpful when troubleshooting problems. If your Docker daemon is not running in debug mode this script will prompt and ask if you want to enable it. If you choose so, it will attempt to enable debug mode by adjusting the Docker config file (add the **-D** flag) and restarting the docker daemon.
After troubleshooting remember to revert the changes made to the config file and restart the daemon.
### Usage
#### On a Linux Machine
```
curl -O https://raw.githubusercontent.com/dockersupport/dsinfo/master/dsinfo.sh
chmod +x dsinfo.sh
sudo ./dsinfo.sh
```
or
```
wget https://raw.githubusercontent.com/dockersupport/dsinfo/master/dsinfo.sh
chmod +x dsinfo.sh
sudo ./dsinfo.sh
```
#### Using Boot2Docker
This script needs to be run in the Boot2Docker virtual machine. You can ssh into your Boot2Docker VM with:
- With Bash: `ssh -i ~/.ssh/id_boot2docker docker@$(boot2docker ip)`
- With [Fish](http://fishshell.com/): `ssh -i ~/.ssh/id_boot2docker docker@(boot2docker ip)`
### Notes
This script creates the directories:
- /tmp/dsinfo
- /tmp/dsinfo/dhe
- /tmp/dsinfo/dhe/generatedConfigs
- /tmp/dsinfo/dhe/logs
- /tmp/dsinfo/inspect
- /tmp/dsinfo/logs
This script collects the following:
- Docker daemon configuration and logs
- Inspect results and logs from the last 20 containers
- Miscellaneous system information (Output to: /tmp/dsinfo/report.md)
All files/directories are compressed to: /tmp/dsinfo.tar.gz
---------------------------------------------------------------------------------
*** Important ***
Before sharing the dsinfo.tar.gz archive, review all collected files for
private information and edit/delete if necessary.
If you do edit/remove any files, recreate the tar file with the following command:
sudo tar -zcf /tmp/dsinfo.tar.gz /tmp/dsinfo