Home > Article > Operation and Maintenance > How to copy images under docker
How to copy images under docker:
Execute the following command in the host:
docker cp 容器名:要拷贝的图片在容器里面的路径 要拷贝到宿主机的相应路径
docker cp: used for containers and Data copy between hosts.
Example
Copy the /www directory of the container 96f7f14e99ab to the /tmp directory of the host.
docker cp 96f7f14e99ab:/www /tmp/
For more related tutorials, please pay attention to the docker tutorial column on the PHP Chinese website.
The above is the detailed content of How to copy images under docker. For more information, please follow other related articles on the PHP Chinese website!