11 ms·
I think it's important to recognize the difference between Dockerfiles and Docker images. Docker Engine builds Dockerfiles to Docker images, but you don't need
by Wingy 3y ago
I think it's important to recognize the difference between Dockerfiles and Docker images. Docker Engine builds Dockerfiles to Docker images, but you don't need a Dockerfile to run a pre-built image.
- yjftsjthsd-h 3y agoYou can also make container images without using Dockerfiles (ex. using nix)
- lokar 3y agoOr tar
- metaltyphoon 3y agoDotnet added tooling to its SDK to build a docker image without having docker installed.
- jonhohle 3y agoI came here to say the same thing. Images and their layers are loosely related to the Dockerfile format (each command is a layer), but Dockerfiles are as useful for execution as C Source files are. Likewise images can be sent and received without a Dockerfile just like an executable without its source.
- justsomehnguy 3y ago>Docker Engine builds Dockerfiles to Docker images Docker Engine uses a Dockerfile as an instruction to build a Docker Image
- malablaster 3y agoIn a software context, “build” implicitly means to use as instruction. The clarification was unnecessary.
- justsomehnguy 3y agoIs the program source is an instruction on how to run the program or how to build the program? What a compiler does with the program source?
- smcameron 3y agoThe confusing part was the non-idiomatic English "builds X to Y" instead of "builds Y from X". Edit: perhaps it is idiomatic somewhere in the world to say "builds X to Y", but not in the U.S., in my experience. Could be similar to British "different to" as compared to American "different than" or "different from".