docker build -t dockerfile code example
Example 1: docker build from dockerfile
$ docker build - < Dockerfile
Example 2: docker build -t
--tag , -t ----> Name and optionally a tag in the ‘name:tag’ format
$ docker build - < Dockerfile
--tag , -t ----> Name and optionally a tag in the ‘name:tag’ format