4

Docker to Buildah and Podman

The description of the tag says “A Dockerfile is a file containing instructions to build a Docker image” ⸺ Yes, it was right, but nowadays Dockerfiles are not specific to Docker. Dockerfiles also work with Buildah & Podman (and there might be other ones in the future) and they have generalized the naming: “Containerfile.”

If there’s any questions with this tag that are particularly specific to Docker, they would have been tagged with as well, so they won’t lose the information.

I suggest retagging to , or creating the new tag as a synonym.

14
  • 3
    Are there many dockerfile questions that need to refer to the Docker-specific variant for some reason? Phrased another way: Are we losing important information on some questions if we convert [dockerfile] to the more generic equivalent?
    – zcoop98
    Commented May 26, 2021 at 20:13
  • @zcoop98 Docker-specific questions, if any, would have been tagged with docker as well. Commented May 26, 2021 at 20:17
  • 8
    Docker suffers from the Xerox problem. Like it or not the industry refers to them as Dockerfiles. Commented May 26, 2021 at 20:17
  • 3
    FYI, there is already container-file
    – TylerH
    Commented May 26, 2021 at 20:26
  • 1
    @TylerH That tag doesn't seem to be related to this kind of container based on its usage, but then again, there are only 4 questions in the tag.
    – zcoop98
    Commented May 26, 2021 at 20:28
  • New question: Are "containerfiles" 100% identical to dockerfiles? Are they the same? Or are there technical differences?
    – zcoop98
    Commented May 26, 2021 at 20:44
  • 1
    @zcoop98 They are 100% identical; just different names. From podman-build: “Builds an image using instructions from one or more Containerfiles or Dockerfiles and a specified build context directory. A Containerfile uses the same syntax as a Dockerfile internally. For this document, a file referred to as a Containerfile can be a file named either ‘Containerfile’ or ‘Dockerfile’. Commented May 26, 2021 at 20:47
  • 1
    @zcoop98 Yeah, I mostly am just pointing out there's no way we can have a containerfile tag when there is already a container-file tag, that means something completely different...
    – TylerH
    Commented May 26, 2021 at 20:47
  • I don't even know why we have a separate tag for the file. The only one that interprets that file meaningfully it's docker, literally no one care about it. Docker is the only consumer of it, so tagging your question with docker should be enough. In fact, I doubt there would be on topic questions about the file itself.
    – Braiam
    Commented May 26, 2021 at 21:37
  • 1
    @Braiam Did you read the question or comments above? “The only one that interprets that file meaningfully is Docker.” is false. Buildah and Podman also do it. If it works with Docker, it should work with Buildah & Podman as well, and vice versa. That’s why I’m trying to generalize it. Commented May 26, 2021 at 21:39
  • They do not meaningfully consume it. Buildah just mashes string together to "generate" the file. That's not consumption, that's production. Podman is less bad, it imports moby libraries to manage the docker daemon (along with kubernetes, etc), so it arguably consumes it meaningfully (if only to pass the task to moby later). But that still doesn't clear the biggest hurdle: there's nothing inherently programming about a Dockerfile.
    – Braiam
    Commented May 26, 2021 at 21:53
  • @Braiam If it has nothing to do with programming, why does the tag dockerfile even exist in SO, then, remaining not burninated? Commented May 26, 2021 at 21:56
  • Well, because we must tackle the web first, also the website, also username, etc. if you catch my drift ;) Note: the presence or absence of a tag doesn't assure you that you can ask questions about that topic on SO. Programming is on topic on SO, but there's no tag for it.
    – Braiam
    Commented May 26, 2021 at 22:18
  • @Braiam As you said with your web, website, and username examples, just because “There’s nothing inherently programming about a Dockerfile” doesn’t mean the tag should not exist in SO, right. And the same logic applies to the tag containerfile. It might have “the biggest hurdle” to be on-topic in SO, but it can’t be the rationale for not creating the new tag, to rename the existing, or, as a synonym. Commented May 26, 2021 at 22:37

2 Answers 2

9

...no.

Docker and Dockerfile is still a household name, and it's one of those things that I still Google and look up when trying to troubleshoot or build my Docker containers.

Once "Containerfile" starts becoming less of a whisper and more of the topic, then perhaps we can talk about a synonym. But definitely not now.

7

I don't think a new tag makes sense here, at least not yet.

For one, there's already a tag, which is likely too close to "Containerfile" for it to be its own tag.

Second, if there is no useful distinction between Containerfiles and Dockerfiles, then a new tag would just be a direct synonym of , which isn't useful either, unless containerfile is a particularly common name (which might make it useful as a signpost of sorts).

In general, tag renames should be dictated more by actual usage than by an organization proposing a rename (even with Docker being part of the Open Container Initiative). If Docker came out and decided they were renaming their files to this new name, it might make sense to rename the tag, but this doesn't appear to be at that level (at least not yet).


Here's some data I pulled together about this and related/ mentioned tags. It didn't end up being incredibly relevant, but I pulled it together, so I'll put it here anyway.

Usage

  • 10,548 total questions
  • 9,532 (90%) questions are also tagged
  • 1 question tagged
  • 4 tagged
  • 0 tagged (Docker alternative)
  • 0 tagged (Docker alternative)

(SEDE Query)

Related Tags

Tag Total Q's Most Used Accompanying Tags
97,452 Qs
  1. - 17,912 Qs
  2. - 9,532 Qs
  3. - 5,803 Qs
  4. (SEDE Query)
27 Qs
  1. - 13 Qs
  2. - 10 Qs
  3. - 7 Qs
  4. (SEDE Query)
193 Qs
  1. - 56 Qs
  2. - 46 Qs
  3. - 13 Qs
  4. (SEDE Query)
43 Qs
  1. - 21 Qs
  2. - 15 Qs
  3. - 11 Qs
  4. (SEDE Query)
132 Qs
  1. - 67 Qs
  2. - 20 Qs
  3. - 19 Qs
  4. (SEDE Query)
4 Qs (Not useful with only 4 questions, but no
questions or accompanying tags are related
to the Docker-type of containerization)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .