Docker Community Forums

Share and learn in the Docker community.

"Dockerfile" or "dockerfile"?


(Fjanon) #1

I heard during a course that we must use the “Dockerfile” filename with an uppercase “D”.

I used “dockerfile” and I didn’t see any issues.

So what’s the deal?

Thanks


(Sam) #2

is that on windows?

by default the name is with capital leading char, Dockerfile


(Fjanon) #3

Yes, I am using Windows 7 but inside docker toolbox to interact with docker.

by default the name is with capital leading char
I don’t understand. What default? I am creating the file in my editor. There is no default.


(Sam) #4

yes, the toolbox window is on windows, not case sensitive

sam@sams MINGW64 ~
$ echo "from ubuntu" >dockerfile

sam@sams MINGW64 ~
$ cat dockerfile
from ubuntu

sam@sams MINGW64 ~
$ cat Dockerfile
from ubuntu

sam@sams MINGW64 ~
$