= The command docker volume inspect nginx will not display a list of volumes for a specific container. This is because docker volume inspect expects one or more volume names as arguments, nota container name1. To display a list of volumes for a specific container, you can use the docker inspect command with the --format option and a template that extracts the volume information fromthe container JSON output2. For example, to display the source and destination of the volumes mounted by the container nginx, you can use the following command:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit