Docker Community Forums

Share and learn in the Docker community.

Docker Image and Docker File


#1

All,

I’m new to Docker and I’m learning the Windows version of it. I have a question and I believe it is a generic one.

The below command builds a docker image from the docker file.

“docker image build --tag dockeronwindows/ch02-powershell-env .”

But where is the docker file specified here? Is there a default location and a default file name it looks for?

grajee


(Todd W.) #2

Might want to review https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#understand-build-context

By default, docker looks for a Dockerfile.