About 50 results
Open links in new tab
  1. dockerfile - Purpose of FROM command - Docker file - Stack Overflow

    Jan 2, 2019 · Main purpose of Docker container is to avoid carrying guest OS in every container, as shown below. As mentioned here, The FROM instruction initializes a new build stage and sets the …

  2. docker - Understanding && and || in dockerfile - Stack Overflow

    Feb 18, 2022 · I am somewhat new to docker, and trying to understand why && and || mean in dockerfile RUN command. Is there a documentation that explains how they work?

  3. Dockerfile if else condition with external arguments

    Apr 27, 2017 · Accepted answer does not cover "if else condition" part of the question. Would be better to rename it to "Dockerfile with external arguments" if condition check didn't mean to be a requirement.

  4. dockerfile - How do I set environment variables during the "docker ...

    I'm trying to set environment variables in docker container during the build but without success. Setting them when using run command works but I need to set them during the build. Dockerfile FROM ...

  5. docker - Dockerfile: how to redirect the output of a RUN command to …

    Mar 23, 2024 · Dockerfile: how to redirect the output of a RUN command to a variable? Asked 10 years, 4 months ago Modified 2 years ago Viewed 451k times

  6. How do I make a comment in a Dockerfile? - Stack Overflow

    Apr 19, 2016 · I am writing a Dockerfile. Is there a way to make comments in this file? Does Docker have a comment option that takes the rest of a line and ignores it?

  7. What is the difference between the 'COPY' and 'ADD' commands in a ...

    When creating a Dockerfile, there are two commands that you can use to copy files/directories into it – ADD and COPY. Although there are slight differences in the scope of their function, they essentially …

  8. What's the difference between Docker Compose vs. Dockerfile

    Jul 4, 2019 · Dockerfile and Docker Compose are two different concepts in Dockerland. When we talk about Docker, the first things that come to mind are orchestration, OS level virtualization, images, …

  9. How can I generate a Dockerfile from an image? - Stack Overflow

    The Dockerfile is mainly useful if you want to be able to repackage an image. The thing to keep in mind, is a Docker image can actually just be the tar backup of a real or virtual machine. I have made …

  10. docker - What is the .dockerfile extension? - Stack Overflow

    Apr 26, 2018 · 30 Visual Studio Code (1.22.2) offers a file extension named .dockerfile in the the save dialog. What is a file with this extension? A Dockerfile is in all documentation and examples, that I've …