From the course: Windows Server 2019: Deploying Containers

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Use Dockerfiles

Use Dockerfiles - Windows Server Tutorial

From the course: Windows Server 2019: Deploying Containers

Start my 1-month free trial

Use Dockerfiles

- [Instructor] For anyone, administrator or developer, who wants to build new containers based one existing images, the command to do it is docker build, and docker build uses a text file that is by default called docker file, to build the new image in an automated way. So you define a set of instructions in the build file to create your new image. We're here on a Windows container host, and this happens to be Windows Server Core. If I do a dir here, I have created a folder called dockerfiles. I'll go in here and do a dir, and you can see, I have a Dockerfile that I've created. Let's type this out, and you can see it's a very simple file. Let me move this to the middle of the screen so maybe you can see it better. For the full reference on how to create docker files and the syntax that's used inside, I encourage you to check out the docker docs, specifically the docker file reference documentation. But in this docker file, what we did is we took an existing image called iis:latest…

Contents