简体   繁体   中英

Dockerfiles or images in docker hub?

Why is docker hub keeping images rather than dockerfiles, it would be much lighter, no?

The dockerfile is the recipe for the image after all...

Can you explain that choice?

Because that way, you don't have to build them, you can "download" ( docker pull ) images directly from Docker Hub .

Building is not always possible as you need to copy and configure an image with resources which you might not have locally.

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