We can start Docker in debug mode to debug logs.
Starting Docker in debug mode
Getting ready
I hope you already have Docker installed on your system by now.
How to do it...
Follow these steps:
- Start the docker daemon with the debug option, -D. To start from the command line, you can run the following command:
$ dockerd -D
- You can also add the debug option in the Docker configuration file to start in debug mode:
$ cat /etc/docker/daemon.json
{ "debug": true }