docker build - < Dockerfile code example Example 1: docker build docker build -t [tag] . Example 2: docker build from dockerfile $ docker build - < Dockerfile