Dockerfiles for creating Docker images Basic Dockerfiles for buliding images To use a Dockerfile to build an image, use the following as an example. cd tomcat8 docker build -t mclose/tomcat8 .