[英]Why do some of the repositories on docker hub not having dockerfile?
When I use the repo on docker hub, I saw some of them have the corresponding docker files.当我在 docker hub 上使用 repo 时,我看到其中一些有相应的 docker 文件。 Eg https://hub.docker.com/r/limesbonn/hisat2/dockerfile
例如https://hub.docker.com/r/limesbonn/hisat2/dockerfile
But some of them don't.但他们中的一些人没有。 Eg: https://hub.docker.com/r/leanderd/single-cell-analysis
例如: https : //hub.docker.com/r/leanderd/single-cell-analysis
Could someone tell me why?有人能告诉我为什么吗? Is there a way to get the dockerfile from a repo like this one: https://hub.docker.com/r/leanderd/single-cell-analysis ?
有没有办法从这样的仓库中获取 dockerfile: https ://hub.docker.com/r/leanderd/single-cell-analysis? Thanks in advance.
提前致谢。
There is no Dockerfile information in image file.镜像文件中没有 Dockerfile 信息。 It's the instruction to
build
layers of images.这是
build
图像层的指令。 Therefore, there is no way Docker Hub knows which Dockerfile is for the image.因此,Docker Hub 无法知道哪个 Dockerfile 是用于镜像的。 It needs to be shared by the authors of the image.
它需要由图像的作者共享。
If the author uploads Dockerfile to docker hub, they can use the automatic creating image mechanism.如果作者将 Dockerfile 上传到 docker hub,他们可以使用自动创建镜像机制。 So, that's why you can see Dockerfile there.
所以,这就是您可以在那里看到 Dockerfile 的原因。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.