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/
container_namewith the name of your container. This command will copy all the files and folders in the
/usr/local/etc/phpdirectory of the container to the
./config/phpdirectory on your local machine.