YohLee / Learning

学习资料
2 stars 0 forks source link

docker跟宿主机之间文件拷贝及镜像构建 #16

Open YohLee opened 4 years ago

YohLee commented 4 years ago

http://blog.csdn.net/yangzhenping/article/details/43667785

从主机复制到容器sudo docker cp host_path containerID:container_path

从容器复制到主机sudo docker cp containerID:container_path host_path

1,docker ps -a -------获取containerID 2,sudo docker cp /home/oracle_backup/emr.dmp 39abd27c32b7:/home/oracle/ sudo docker cp /home/oracle_backup/ehr.dmp 39abd27c32b7:/home/oracle/