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.
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)- B3% (1)
- C5% (2)
- D92% (35)
Why each option
The question asks for the Docker command used to inspect the logging driver configuration of a specific running container.
`docker stats` shows real-time resource usage statistics for containers, not their configuration details.
`docker info` displays system-wide information about the Docker daemon and its environment, not specific container configurations.
`docker config` is used to manage sensitive data (configs) for Docker Swarm services, not to inspect a container's logging driver.
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
Community Discussion
No community discussion yet for this question.