Heim  >  Fragen und Antworten  >  Hauptteil

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

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

怪我咯怪我咯2707 Tage vor620

Antworte allen(1)Ich werde antworten

  • 迷茫

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

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

    Antwort
    0
  • StornierenAntwort