nerdexam
Docker

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.

Submitted by hassan_iq· Apr 18, 2026Storage and Volumes

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)
  • A
    10% (5)
  • B
    90% (46)

Why each option

The `docker volume logs` command is not a valid Docker command, and there is no `--containers` flag for volume management.

AYes

The command `docker volume logs` does not exist as a valid Docker CLI command, making it impossible to display container volumes.

BNoCorrect

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

#Docker Volumes#Command Syntax#Volume Management

Community Discussion

No community discussion yet for this question.

Full DCA Practice