News for hackers. Stuff that matters.
Re:Docker Is Four Things by ajross on Thursday August 31, 2023 @09:05AM (#37336533)
If you're going to make absolutist statements about nitpicky minutiae, you have to get it right.

In point of fact the image side of a Dockerfile, where an image is a DAG of other images referenced by an immutable ID or pointer to hosted content, is "100%" declarative. It's only the "build" syntax that is ordered.

Re:Docker Is Four Things by candiddevmike on Thursday August 31, 2023 @09:08AM (#37336588)
OP specifically said "The Dockerfile format is not declarative." They made no mention of the image side, only the build syntax.
Re:Docker Is Four Things by bheadmaster on Thursday August 31, 2023 @09:18AM (#37336709)
In all the real-world cases I've seen, the base images in Dockerfiles are just tags, which are mutable (especially the :latest tag which changes with every release).
Re:Docker Is Four Things by shawabawa3 on Thursday August 31, 2023 @09:54AM (#37337204)
We are only talking about the build syntax here ("the Dockerfile file format")
Re:Docker Is Four Things by lolinder on Thursday August 31, 2023 @10:40AM (#37337868)
If you're going to be nitpicky about minutae, you have to get it right.

The "image side of a Dockerfile" isn't a Dockerfile, it's an image, more specifically an image in the OCI Image Format [0]. A Dockerfile is just the most common syntax for creating an OCI image.

You could argue that the OCI Image Format is declarative, but that's not relevant to OP's comment about Dockerfiles.

[0] https://github.com/opencontainers/image-spec