nerdexam
Docker

DCA · Question #23

A user is having problems running Docker. Which of the following will start Docker in debug mode?

The correct answer is A. Set the debug key to true in the 'daemon.json' file. To start the Docker daemon in debug mode, the debug key should be set to true within the daemon.json configuration file.

Submitted by jakub_pl· Apr 18, 2026Installation and Configuration

Question

A user is having problems running Docker. Which of the following will start Docker in debug mode?

Options

  • ASet the debug key to true in the 'daemon.json' file.
  • BStart the 'dockerd' process manually with the '--logging' flag set to debug
  • CSet the logging key to debug in the 'daemon.json' file.
  • DStart the 'dockerd' process manually with the '--raw-logs' flag set to debug

How the community answered

(35 responses)
  • A
    89% (31)
  • B
    3% (1)
  • C
    3% (1)
  • D
    6% (2)

Why each option

To start the Docker daemon in debug mode, the `debug` key should be set to `true` within the `daemon.json` configuration file.

ASet the debug key to true in the 'daemon.json' file.Correct

The `daemon.json` file is the standard configuration file for the Docker daemon, and setting the `debug` key to `true` (e.g., `"debug": true`) enables verbose debug logging, which is essential for troubleshooting Docker issues.

BStart the 'dockerd' process manually with the '--logging' flag set to debug

There is no standard `--logging` flag for the `dockerd` process to set debug mode; `--log-level debug` is the correct flag if passed directly.

CSet the logging key to debug in the 'daemon.json' file.

While `log-level` can be set to `debug` in `daemon.json`, the explicit `debug: true` key directly enables the comprehensive debug mode.

DStart the 'dockerd' process manually with the '--raw-logs' flag set to debug

The `--raw-logs` flag prevents log escaping for non-TTY outputs but does not enable debug mode or set the logging level for the daemon.

Concept tested: Docker daemon debug configuration

Source: https://docs.docker.com/config/daemon/ troubleshoot/

Topics

#Docker daemon configuration#Debug mode#Troubleshooting#daemon.json

Community Discussion

No community discussion yet for this question.

Full DCA Practice