Linux-下docker和主机之间的文件拷贝

从主机复制到容器sudo docker cp host_path containerID:container_path
从容器复制到主机sudo docker cp containerID:container_path host_path

docker cp /home/test/nginx/conf/conf.d/nginx.conf_20230530_zkm 55e7047698a0:/etc/nginx
posted @ 2023-12-12 23:09  深海蓝精灵  阅读(100)  评论(0编辑  收藏  举报