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.
Run IIS in a container - Windows Server Tutorial
From the course: Windows Server 2019: Deploying Containers
Run IIS in a container
- [Instructor] One of the most useful things that you can do with Windows containers is to run a web server inside. Of course, Microsoft's web server is IIS, Internet Information Server, and it's really easy to run inside a container. Let me show you how this works. We're here on our Windows container host, and we're going to do a docker run, and this time, we're going to use the minus d flag to start this container up as a daemon, like a service, so it doesn't end once the command is started, or once this container is started. We'll also add another command here, which is minus p, for the port number, and this has to do with networking, this is the port mapping. And we'll talk more about networking later in the course, but what you need to know now is that we're mapping port 80 on the inside of the container to port 80 on the outside of the container so that we can access this container over the network. From here we're going to specify the Microsoft Container Registry dot…
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.