This command will not display a list of volumes for a specific container, as it will show detailed information on the container itself, such as its configuration, network settings, state, and log path1. To display a list of volumes for a specific container, you need to use the --format option with a custom template that filters the output by the Mounts field2. For example, the following command will show the source and destination of the volumes mounted in the nginx container:
How to Use Docker Inspect Command - Linux Handbook
Contribute your Thoughts:
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