Enable Debug Logging for Docker Daemon
Problem
There is a need to enable or disable debug logging for the Docker daemon.
Environment
- Platform9 Managed Kubernetes - All Versions
- Docker
Answer
- Edit the /etc/docker/daemon.json file and set the "debug": true flag. The file should look as shown below when edited.
- Send a SIGHUP signal to the Docker daemon, triggering it to reload its configuration without restarting the process.
- To check whether the configuration has been applied, use the below command.
Also, if the debug parameter is enabled, the output logs will be shown as follows.
Note: To disable debug logging, perform both the steps again, setting "debug": false.
Additional Information
Was this page helpful?