docker pull 后对应的镜像文件在哪里, 我用的ubuntu , 然后镜像里能看到 Dockerfile 文件吗? 我现在正模仿写 Dockerfile
欢迎选择我的课程,让我们一起见证您的进步~~
The address for downloading the image file on /var/lib/docker/aufs中。Dockerfile只是用来生成镜像的,镜像中不会包含Dockerfile,这就像源码和程序的关系一样。在Docker Hub(https://hub.docker.com)上找到你想要的镜像,里面都会有生成此镜像的Dockerfile以及相关文件在Github can be found there.
/var/lib/docker/aufs
Dockerfile
Docker Hub
Github
You have to write the dockerfile yourself. As far as I know, it cannot be seen.
The address for downloading the image file on
/var/lib/docker/aufs
中。Dockerfile
只是用来生成镜像的,镜像中不会包含Dockerfile
,这就像源码和程序的关系一样。在
Docker Hub
(https://hub.docker.com)上找到你想要的镜像,里面都会有生成此镜像的Dockerfile
以及相关文件在Github
can be found there.You have to write the dockerfile yourself. As far as I know, it cannot be seen.