DCA · Question #104
Will this command display a list of volumes for a specific container? Solution: docker volume logs nginx --containers'
The correct answer is B. No. The docker volume logs command is not a valid Docker command, and there is no --containers flag for volume management.
Question
Will this command display a list of volumes for a specific container? Solution: docker volume logs nginx --containers'
Options
- AYes
- BNo
How the community answered
(51 responses)- A10% (5)
- B90% (46)
Why each option
The `docker volume logs` command is not a valid Docker command, and there is no `--containers` flag for volume management.
The command `docker volume logs` does not exist as a valid Docker CLI command, making it impossible to display container volumes.
No. There is no `docker volume logs` command in Docker; the `logs` subcommand applies to containers (e.g., `docker container logs`). Even if it existed, the `--containers` flag is not a valid option for managing or listing volumes.
Concept tested: Docker CLI command syntax for volumes and logs
Source: https://docs.docker.com/engine/reference/commandline/volume/
Topics
Community Discussion
No community discussion yet for this question.