Docker cp 命令
Docker 教程
· 2019-02-18 16:28:40
docker cp :用于容器与主机之间的数据拷贝。
语法
docker cp [OPTIONS] CONTAINER:SRC_PATH DEST_PATH|-
docker cp [OPTIONS] SRC_PATH|- CONTAINER:DEST_PATH
OPTIONS说明:
-L :保持源目标中的链接
实例
将主机/www/codercto目录拷贝到容器96f7f14e99ab的/www目录下。
docker cp /www/codercto 96f7f14e99ab:/www/
将主机/www/codercto目录拷贝到容器96f7f14e99ab中,目录重命名为www。
docker cp /www/codercto 96f7f14e99ab:/www
将容器96f7f14e99ab的/www目录拷贝到主机的/tmp目录中。
docker cp 96f7f14e99ab:/www /tmp/
点击查看所有 Docker 教程 文章: https://codercto.com/courses/l/15.html
How to Design Programs
Matthias Felleisen、Robert Bruce Findler、Matthew Flatt、Shriram Krishnamurthi / The MIT Press / 2001-2-12 / 71.00美元
This introduction to programming places computer science in the core of a liberal arts education. Unlike other introductory books, it focuses on the program design process. This approach fosters a var......一起来看看 《How to Design Programs》 这本书的介绍吧!