如何将文件从我的本地主机复制到正在运行的容器?
我已经从我们的本地dockerregistry启动了一个容器。 我没有login访问我们的dockerregistry或docker主机。 我需要从我的本地主机或笔记本电脑复制文件到正在运行的容器。
尝试
docker cp /host/path/target <containerId>:/file/path/within/container
并以相反的方式
docker cp <containerId>:/file/path/within/container /host/path/target