News for hackers. Stuff that matters.
Re:Dive – A tool for exploring each layer in a Docker image by maxbendick on Sunday November 25, 2018 @04:25PM (#18529151)
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.

Re:Dive – A tool for exploring each layer in a Docker image by avip on Sunday November 25, 2018 @04:35PM (#18529201)
But a Dockerfile is imperative. It just lists, in order, the steps needed to build an image.
Re:Dive – A tool for exploring each layer in a Docker image by maxbendick on Sunday November 25, 2018 @05:03PM (#18529352)
It'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).
Re:Dive – A tool for exploring each layer in a Docker image by iamdave on Sunday November 25, 2018 @05:09PM (#18529379)
But 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.