You can use the docker cp
command to copy files from a running container to your local machine. Here’s an example command:
docker cp container_name:/usr/local/etc/php ./config/php/
Replace
container_name
with the name of your container. This command will copy all the files and folders in the /usr/local/etc/php
directory of the container to the ./config/php
directory on your local machine.