docker容器和宿主机之间复制文件

https://blog.csdn.net/u012416928/article/details/55049063

https://blog.csdn.net/u011596455/article/details/76862271


如何在docker容器和宿主机之间复制文件


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

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

[root@kube-node2 k8s]# docker cp /k8s/apache-tomcat-8.5.31.tar.gz 13138360239c:/var/jenkins_home/workspace/test/target/

posted @ 2018-12-03 20:18  effortsing  阅读(546)  评论(0编辑  收藏  举报