Docker Sample dockerfiles To build a docker image image from a Dockerfile dfile, do into the directory of the Dockerfile and type: docker build -t image -f dfile .