【发布时间】:2020-07-18 21:28:14
【问题描述】:
历史:
我的 docker 构建文件在我的 Linux Mint VM 上运行了多年,没有任何问题。当我需要重新创建 VM 时,我再次安装了所有东西,包括 docker.io。 我正在为这个错误挨打。我已经验证了最终文件在 docker 镜像中,但是当我尝试将它复制到容器外部的目录时,它说它不存在。
我遵循Exploring Docker container's file system 的指导方针并验证该文件确实在容器中。
环境:
- Linux Mint 19 (Tricia)
- 通过 snap 安装 Docker
命令:
docker cp {CONTAINER_ID}:/container_path /local_path
问题:
stat /container_path: no such file or directory
【问题讨论】:
标签: linux docker dockerfile linux-mint