nerdexam
Docker

DCA · Question #54

What is the docker command to find the current logging driver for a running container?

The correct answer is D. docker inspect. The question asks for the Docker command used to inspect the logging driver configuration of a specific running container.

Submitted by tarun92· Apr 18, 2026Installation and Configuration

Question

What is the docker command to find the current logging driver for a running container?

Options

  • Adocker stats
  • Bdocker info
  • Cdocker config
  • Ddocker inspect

How the community answered

(38 responses)
  • B
    3% (1)
  • C
    5% (2)
  • D
    92% (35)

Why each option

The question asks for the Docker command used to inspect the logging driver configuration of a specific running container.

Adocker stats

`docker stats` shows real-time resource usage statistics for containers, not their configuration details.

Bdocker info

`docker info` displays system-wide information about the Docker daemon and its environment, not specific container configurations.

Cdocker config

`docker config` is used to manage sensitive data (configs) for Docker Swarm services, not to inspect a container's logging driver.

Ddocker inspectCorrect

The `docker inspect` command provides detailed low-level configuration information for Docker objects, including the logging driver settings for a running container, which are found within its JSON output.

Concept tested: Docker container inspection

Source: https://docs.docker.com/engine/reference/commandline/inspect/

Topics

#docker inspect#logging driver#container configuration#runtime details

Community Discussion

No community discussion yet for this question.

Full DCA Practice