拷贝本机文件夹到docker某容器中:
命令:docker cp 本机目录 容器ID:容器目录
#查看容器列表
PS D:\docker_erp> docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
900f288f4690 docker_erp_php-fpm5:latest "docker-php-entrypoi…" 2 weeks ago Up 11 minutes 9000/tcp thirsty_maxwell
#拷贝本机文件夹到docker某容器中
PS D:\docker_erp> docker cp D:\xampp\php\pear\SOAP 900f288f4690:/usr/local/lib/php
#进入对应容器中
PS D:\docker_erp> docker exec -it 900f288f4690 bash
#查看容器中是否存在刚才复制的文件夹
root@900f288f4690:/var/www/html# cd /usr/local/lib/php
root@900f288f4690:/usr/local/lib/php# ls
Archive Console OS PEAR PEAR.php PHPExcel SOAP Structures System.php XML build data doc extensions pearcmd.php peclcmd.php test
#查看复制的文件夹内容是否准确
root@900f288f4690:/usr/local/lib/php# cd SOAP/
root@900f288f4690:/usr/local/lib/php/SOAP# ls
Base.php Client.php Disco.php Fault.php Parser.php Server Server.php Transport Transport.php Type Value.php WSDL.php tools
root@900f288f4690:/usr/local/lib/php/SOAP# ^C
root@900f288f4690:/usr/local/lib/php/SOAP#