Copying files from host to Docker container

The cp command can be used for that. For example:

docker cp foo.txt mycontainer:/foo.txt
docker cp mycontainer:/foo.txt foo.txt

 

https://docs.docker.com/engine/reference/commandline/cp/

http://blog.csdn.net/yangzhenping/article/details/43667785

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326396759&siteId=291194637