Dockerfiles Dockerfile is a declarative way of creating our own images. Docker will give us some syntax to create our own images. File name should Dockerfile. docker command should run where your Dockerfile exists.