如果未提供 <dest>,则使用 ADD 命令时的目标位置

Destination location when using ADD command if <dest> is not provided

我想将我的应用程序从本地推送到网络 Linux 服务器。我有这样的 Dockerfile

FROM microsoft/aspnet:1.0.0-rc1-update1
ADD . /app
WORKDIR /app/approot
ENTRYPOINT ["./web"]

根据document,

If <dest> doesn’t exist, it is created along with all missing directories in its path.

我不明白。目的地的物理路径是什么?因为我以为在网络服务器的某个地方有一个文件夹/app但是我找不到它。

这是线索,可能会有用。 Where are Docker images stored?

这东西在哪里?首先要看的地方在/var/lib/docker/

查看 /var/lib/docker/graph/ 中的内容。 那么实际存储在那里的是什么? 这里的条目是:

  • json - 保存有关图像的元数据
  • layersize - 只是一个数字,表示层的大小
  • layer/ - 包含容器映像的 rootfs 的子目录