有没有办法通过容器本身上运行的命令从搬运工容器文件复制到主机?我知道,我可以用“量”,但它不会工作 - 我想从容器中的文件复制到主机上的任意位置。只有SCP文件可见SSH?
来源:Copying files from Docker container to host你可以运行:
docker cp <containerId>:/file/path/within/container /host/path/target