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