> Declarative means you define the state you want
“FROM ubuntu:latest” is pretty declarative then…
“FROM ubuntu:latest” is pretty declarative then…
Here's an example Dockerfile:
FROM McDonalds Cheeseburger HappyMeal
RUN Get ketchup packets
RUN Squirt ketchup on fries
RUN Dump happymeal on plate
The first is declarative, a menu, you point at what you want and software makes it so.
The rest is a recipe, an imperative, a command, you tell software to perform, and software makes it so.