docker容器的文件导入导出

把宿主机上的文件复制到docker容器内部

docker cp /path/filename 容器id或名称:/path/filename

也可以把docker容器内部的文件复制到本地

docker cp 容器id或名称:/path/filename /path/filename

猜你喜欢

转载自blog.csdn.net/weixin_44455388/article/details/108661689