简体   繁体   中英

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. Eg https://hub.docker.com/r/limesbonn/hisat2/dockerfile

But some of them don't. Eg: 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 ? Thanks in advance.

There is no Dockerfile information in image file. It's the instruction to build layers of images. Therefore, there is no way Docker Hub knows which Dockerfile is for the image. 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. So, that's why you can see Dockerfile there.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM