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 - Windows Server Tutorial
From the course: Windows Server 2019: Deploying Containers
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
Control containers in Windows6m 20s
-
Manage images5m 54s
-
Understand tags3m 17s
-
Manage container networking8m 50s
-
Manage container storage9m 22s
-
Orchestrate Windows Containers with Swarm8m 31s
-
Orchestrate Windows Containers with Kubernetes2m 25s
-
Use Dockerfiles4m 46s
-
Enable Hyper-V Containers12m 54s
-
Run Windows Nano Server in a container3m 38s
-
Run Linux containers in Windows4m 33s
-
-
-
-