build docker with tag code example
Example 1: docker tag
docker tag SOURCE_IMAGE[:TAG] TARGET_IMAGE[:TAG]
Example 2: docker build
docker build -t [tag] .
Example 3: how to create docker image from custom filename
cat DockerFile.debian.foo | docker build -t debian.foo -