Answers for "how to build a docker image"

4

how to build docker image

docker build <Dockerfile path> -t image-name

docker build . -t tag-service:v1  // -t flag is for tag name that you want to give
Posted by: Guest on September-07-2021
3

docker build image

docker build --tag hello .
Posted by: Guest on February-20-2021
2

docker create

docker create [options] IMAGE
  -a, --attach               # attach stdout/err
  -i, --interactive          # attach stdin (interactive)
  -t, --tty                  # pseudo-tty
      --name NAME            # name your image
  -p, --publish 5000:5000    # port map
      --expose 5432          # expose a port to linked containers
  -P, --publish-all          # publish all ports
      --link container:alias # linking
  -v, --volume `pwd`:/app    # mount (absolute paths needed)
  -e, --env NAME=hello       # env vars
Posted by: Guest on May-31-2020
0

how to build a docker image

sudo docker build -t flaskmongo . --no-cache
Posted by: Guest on June-11-2021

Code answers related to "how to build a docker image"

Browse Popular Code Answers by Language