4 ms·
It's not the same comparison. You can perfectly well run a shell script in the terminal. But you cannot run a Dockerfile, in the same way you cannot run a C++
by whirlwin 3y ago
It's not the same comparison. You can perfectly well run a shell script in the terminal.
But you cannot run a Dockerfile, in the same way you cannot run a C++ source file as an executable. It needs to be compiled first.
- crabbone 3y agoWell, actually... you can just run C++ source as an executable... there are a bunch of C++ interpreters out there (of various quality, and probably not quite useful, but hey, nobody said you will have a good time running your C++ source). But, yeah, if the article wanted to clarify instead of obscuring the functionality of Docker, the one we know and use, then saying that it runs the Dockerfile is misleading. I mean, it does run it to builds an image, that's how it build the image, but then readers need an explanation for why there are images and why do they need them, if all they do is running Dockerfiles, and that's where the "explanation" becomes worthless.