1 | initial version |
To show all the files of a particular Docker container, you can use the docker exec
command with the ls
command option. The command syntax is as follows:
docker exec <container_name> ls
Here, <container_name>
refers to the name or ID of the container whose files you want to view.
For example, if you want to view the files of a container named my-container
, you can run the following command:
docker exec my-container ls
This will display a list of all the files and folders located in the root directory of the container.