docker build
Docker images can be built in two ways. One way is to author a Dockerfile with instructions to prepare the image and use the docker build command to create an image. The second way, which will be discussed in the following section, is to create a container using a base OS image such as windowsservercore, connect to the container using an interactive command line such as PowerShell or Windows Command Prompt, customize the container using automation scripts such as PowerShell or any other tools (since Windows Server Core does not have a UI any customization can only be done via scripts) and then convert to an image using the docker commit command. In this section, we will be learning how to create an image using the docker build ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access