Docker build image command code example
Example 1: docker build image
docker build --tag hello .
Example 2: docker build
docker build -t [tag] .
Example 3: how to build docker image
docker build <Dockerfile path> -t image-name
Example 4: how to create docker image from custom filename
cat DockerFile.debian.foo | docker build -t debian.foo -