How to name Dockerfiles

Lloyd R. Prentice picture Lloyd R. Prentice · Sep 27, 2014 · Viewed 101.2k times · Source

I'm unsure of how to name Dockerfiles. Many on GitHub use Dockerfile without a file extension. Do I give them a name and extension; if so what? Or do I just call them Dockerfile?

Answer

tk_ picture tk_ · Sep 28, 2014

Don't change the name of the dockerfile if you want to use the autobuilder at hub.docker.com. Don't use an extension for docker files, leave it null. File name should just be: (no extension at all)

Dockerfile