返回列表 發帖
本帖最後由 角色 於 2018-6-12 19:06 編輯

How to coy files between containers?

https://stackoverflow.com/questi ... to-docker-container

The cp command can be used to copy files. One specific file can be copied like:
  1. docker cp foo.txt mycontainer:/foo.txt
  2. docker cp mycontainer:/foo.txt foo.txt
複製代碼
Multiple files contained by the folder src can be copied into the target folder using:
  1. docker cp src/. mycontainer:/target
  2. docker cp mycontainer:/src/. target
複製代碼

TOP

返回列表