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?

王林
王林forward
2020-07-09 17:14:332621browse

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/

Container to host:

docker cp 96f7f14e99ab:/www /tmp/

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!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete