docker_practice/appendix/debug.md

43 lines
683 B
Go
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# Docker
## Debug
dockerd daemon.json /etc/docker/
```json
{
"debug": true
}
```
```bash
$ sudo kill -SIGHUP $(pidof dockerd)
```
dockerd
##
```bash
$ sudo dmesg |grep dockerd
$ sudo dmesg |grep runc
```
## Docker
dockerd
```bash
$ sudo kill -SIGUSR1 $(pidof dockerd)
```
## Docker
* Docker *
```bash
$ sudo rm -rf /var/lib/docker
```