docker_practice/appendix/debug.md

43 lines
683 B
Go
Raw Normal View History

2018-12-26 10:05:42 +08:00
# Docker
## Debug
dockerd daemon.json /etc/docker/
```json
{
"debug": true
}
```
```bash
$ sudo kill -SIGHUP $(pidof dockerd)
```
dockerd
##
```bash
2021-01-11 18:14:38 +08:00
$ sudo dmesg |grep dockerd
$ sudo dmesg |grep runc
2018-12-26 10:05:42 +08:00
```
## Docker
dockerd
```bash
$ sudo kill -SIGUSR1 $(pidof dockerd)
```
2018-12-26 10:11:42 +08:00
## Docker
* Docker *
```bash
$ sudo rm -rf /var/lib/docker
```