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

  1. Edit the /etc/docker/daemon.json file and set the "debug": true flag. The file should look as shown below when edited.
Copy
  1. Send a SIGHUP signal to the Docker daemon, triggering it to reload its configuration without restarting the process.
Copy
Copy
  1. To check whether the configuration has been applied, use the below command.
Copy

Also, if the debug parameter is enabled, the output logs will be shown as follows.

Copy

Note: To disable debug logging, perform both the steps again, setting "debug": false.

Additional Information

Debug Logging for Docker

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard