Home > Operation and Maintenance > Docker > Which command can copy data between the container and the host?

Which command can copy data between the container and the host?

王林
Release: 2020-07-09 17:14:33
forward
2616 people have browsed it

Which command can copy data between the container and the host?

The docker cp command can copy data between the container and the host.

(Related introduction: docker tutorial)

Host to container:

docker cp /www 96f7f14e99ab:/www/
Copy after login

Container to host:

docker cp 96f7f14e99ab:/www /tmp/
Copy after login

The above is the detailed content of Which command can copy data between the container and the host?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template