Home  >  Q&A  >  body text

docker 怎么把容器里的文件共享到宿主机

-v 是把宿主机文件挂载到容器内。但是是我想容器里的文件放到宿主机。

怪我咯怪我咯2707 days ago623

reply all(1)I'll reply

  • 迷茫

    迷茫2017-04-24 09:12:24

    docker cp <containerId>:/file/path/within/container /host/path/target  

    reply
    0
  • Cancelreply