April 2017
Beginner
404 pages
9h 30m
English
RUN will execute commands in a new layer and commits if they are successful. The resulting image will be used by the next set of statements to add more layers. In this RUN command we are using the Add-WindowsFeature PowerShell command to install IIS on the windowsservercore base OS image. There can be any number of RUN commands in a Dockerfile. For example, RUN powershell Add-WindowsFeature Web-Server instructs Docker to run the following command on Windows PowerShell, which will install IIS, the default web server component on the Windows platform:
Add-WindowsFeature Web-Server
Read now
Unlock full access