DCA · Question #27
Which of the following commands is used to display system-wide Docker configuration on a host?
The correct answer is A. docker info. The docker info command provides a comprehensive overview of the Docker daemon's configuration and environment on the host system.
Question
Which of the following commands is used to display system-wide Docker configuration on a host?
Options
- Adocker info
- Bdocker status
- Cdocker inspect
- Ddocker system
How the community answered
(47 responses)- A94% (44)
- C2% (1)
- D4% (2)
Why each option
The `docker info` command provides a comprehensive overview of the Docker daemon's configuration and environment on the host system.
The `docker info` command displays detailed system-wide information about the Docker daemon, its environment, operating system, kernel, storage driver, plugin status, and various other configurations, making it ideal for checking the overall Docker setup.
`docker status` is not a standard Docker CLI command for displaying system-wide configuration.
`docker inspect` is used to retrieve low-level information about a specific Docker object (e.g., a container, image, or network), not the entire system-wide configuration.
`docker system` is a subcommand group (e.g., `docker system prune`), but the command `docker system` alone does not display system-wide Docker configuration.
Concept tested: Docker daemon and system information
Source: https://docs.docker.com/engine/reference/commandline/info/
Topics
Community Discussion
No community discussion yet for this question.