About 10,100,000 results
Open links in new tab
  1. 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 …

  2. 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. …

  3. How to get an environment variable value into Dockerfile during …

    Mar 19, 2019 · To clarify @TomHennen's comment, piping the Dockerfile to docker build - is, specifically, what doesn't work when you reference relative paths from your Dockerfile, …

  4. 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, …

  5. docker - Can a Dockerfile extend another one? - Stack Overflow

    And I'd like to create another Dockerfile, based on the first one, but with some PHP extensions added (for dev purpose) : Xdebug and other stuffs. Can I create a "dev" Dockerfile that …

  6. dockerfile - Purpose of FROM command - Docker file - Stack …

    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 …

  7. bash - Clone private git repo with dockerfile - Stack Overflow

    Apr 30, 2014 · The downside of this approach is that you are storing credentials for a private repo within the Dockerfile as opposed to @crooksey's approach which would allow you to reference …

  8. How do I run a docker instance from a DockerFile?

    Mar 18, 2016 · 444 Download Dockerfile and Build a Docker Image Download the Dockerfile to a directory on your machine, and from that same directory, run the following docker build …

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

    Apr 26, 2018 · 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 …

  10. What is the difference between the 'COPY' and 'ADD' commands …

    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, …