3 ms·
This is great! Docker feels imperative to me, and using this could help mitigate that. Also looking into Nix to help my container workflow more declarative.
by maxbendick 8y ago
This is great! Docker feels imperative to me, and using this could help mitigate that.
Also looking into Nix to help my container workflow more declarative.
- avip 8y agoBut a Dockerfile is imperative. It just lists, in order, the steps needed to build an image.
- maxbendick 8y agoIt's declarative in the sense that the instructions are set in text. But what goes inside a Dockerfile might be imperative, like running apt-get to install packages (i.e., running steps in order).
- iamdave 8y agoBut what goes inside a Dockerfile might be imperative, like running apt-get to install packages (i.e., running steps in order) But...that too is done via the Dockerfile, via the RUN command to execute commands inside the container at run time. Or alternatively using the ENTRYPOINT command.