About 50 results
Open links in new tab
  1. docker - How to build dockerfile - Stack Overflow

    Dec 1, 2015 · I have made images ubuntu 14:04 on dockerfile I am running the syntax $ sudo docker build -t mypostgres . but I am still confused as to build the dockerfile how to build it?

  2. How do I set environment variables during the "docker build" process?

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

  3. docker - Build and run Dockerfile with one command - Stack Overflow

    Dec 6, 2019 · There is one command docker build to build a Dockerfile and docker run -it to run the image. Is there any combination of these two commands to make it easier to build and run with just …

  4. docker - How to build an image with a custom name? - Stack Overflow

    Jan 10, 2018 · When I build an image using docker build: docker build . I get an image with a random name. How to create a docker image with a custom name? I already know how to set the name in …

  5. Difference between docker buildx build and docker build for multi arch ...

    Aug 21, 2024 · I have problem with understanding the difference between docker build vs docker buildx build commands in context of building multi arch images. In docker documentation I see that docker …

  6. Purpose/usage of Docker build -t flag vs Docker tag

    Jun 20, 2021 · For command docker build -t the definition stated that -t flag "Name and optionally a tag in the 'name:tag' format" We then run docker tag xxx to "Create a tag TARGET_IMAGE that refers to …

  7. How do you print to console from a docker file during build?

    May 14, 2021 · Suppose you have some Dockerfile. What needs to be added to that file such that a string (ie "Hello World") is printed to the console during build? docker build .

  8. How do I build a docker image if the name of the Dockerfile isn't ...

    $ docker build -t deepak/app - < Dockerfile.app Try that and see if it helps, if not, maybe open a docker issue to add this feature back in, or update the documentation on how to use a Dockerfile with a …

  9. How to build a docker image for M1 Mac Silicon or AMD conditionally ...

    Dec 29, 2022 · I would either not specify the platform in the Dockerfile, and build it the platform-specific way locally (or for production by speciying the build step in the CI) with this command for M1 mac: …

  10. What is the difference between `docker-compose build` and `docker …

    May 8, 2018 · Basically, docker-compose is a better way to use docker than just a docker command. If the question here is if docker-compose build command, will build a zip kind of thing containing …