microsoft-windows-servercore-iis docker image 镜像
source link: https://hub.docker.com/r/microsoft-windows-servercore-iis
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
docker pull microsoft-windows-servercore-iis
# Featured Tags
windowsservercore-ltsc2019
docker pull mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019windowsservercore-1909
docker pull mcr.microsoft.com/windows/servercore/iis:windowsservercore-1909
About This Image
Internet Information Services (IIS) for Windows® Server is a flexible, secure and manageable Web server for hosting anything on the Web.
How to use this image?
Create a Dockerfile with your website
FROM mcr.microsoft.com/windows/servercore/iis
RUN powershell -NoProfile -Command Remove-Item -Recurse C:\inetpub\wwwroot\*
WORKDIR /inetpub/wwwroot
COPY content/ .
You can then build and run the Docker image:
$ docker build -t iis-site .
$ docker run -d -p 8000:80 --name my-running-site iis-site
There is no need to specify an ENTRYPOINT
in your Dockerfile since the microsoft/iis
base image already includes an entrypoint application that monitors the status of the IIS World Wide Web Publishing Service (W3SVC).
Verify in the browser
With the current release, you can't use
http://localhost
to browse your site from the container host. This is because of a known behavior in WinNAT, and will be resolved in future. Until that is addressed, you need to use the IP address of the container.
Once the container starts, you'll need to finds its IP address so that you can connect to your running container from a browser. You use the docker inspect
command to do that:
docker inspect -f "{{ .NetworkSettings.Networks.nat.IPAddress }}" my-running-site
You will see an output similar to this:
172.28.103.186
You can connect the running container using the IP address and configured port, http://172.28.103.186:8000
in the example shown.
In addition to static content, IIS can run other workloads including but not limited to ASP.NET, ASP.NET Core, NodeJS, PHP, and Apache Tomcat.
For a comprehensive tutorial on running an ASP.NET app in a container, check out the tutorial on the docs site.
Related Repos
- microsoft/aspnet: ASP.NET container image
- microsoft/wcf: WCF container image
- microsoft/iis/insider: Insider version of IIS image based on insider OS with beta features.
Full Tag Listing
Windows Images
Tags | Architecture | Dockerfile | OsVersion | CreatedTime | LastUpdatedTime |
---|---|---|---|---|---|
20201110-windowsservercore-2009 | amd64 | Dockerfile | Windows Server 2009 | 11/10/2020 22:20:20 | 11/10/2020 22:20:20 |
windowsservercore-2009 | amd64 | Dockerfile | Windows Server 2009 | 10/21/2020 19:25:56 | 11/10/2020 19:54:56 |
windowsservercore | amd64 | Dockerfile | Windows Server 2009 | 11/10/2020 22:24:57 | 11/10/2020 22:24:57 |
latest | amd64 | Dockerfile | Windows Server 2009 | 11/10/2020 22:24:57 | 11/10/2020 22:24:57 |
20201110-windowsservercore-2004 | amd64 | Dockerfile | Windows Server 2004 | 11/10/2020 22:17:28 | 11/10/2020 22:17:28 |
windowsservercore-2004 | amd64 | Dockerfile | Windows Server 2004 | 06/09/2020 22:23:15 | 11/10/2020 22:17:03 |
windowsservercore | amd64 | Dockerfile | Windows Server 2004 | 11/10/2020 22:24:57 | 11/10/2020 22:24:57 |
latest | amd64 | Dockerfile | Windows Server 2004 | 11/10/2020 22:24:57 | 11/10/2020 22:24:57 |
20201110-windowsservercore-1909 | amd64 | Dockerfile | Windows Server 1909 | 11/10/2020 22:17:16 | 11/10/2020 22:17:16 |
windowsservercore-1909 | amd64 | Dockerfile | Windows Server 1909 | 11/13/2019 19:27:02 | 11/10/2020 22:16:54 |
windowsservercore | amd64 | Dockerfile | Windows Server 1909 | 11/10/2020 22:24:57 | 11/10/2020 22:24:57 |
latest | amd64 | Dockerfile | Windows Server 1909 | 11/10/2020 22:24:57 | 11/10/2020 22:24:57 |
20201110-windowsservercore-1903 | amd64 | Dockerfile | Windows Server 1903 | 11/10/2020 22:19:28 | 11/10/2020 22:19:28 |
windowsservercore-1903 | amd64 | Dockerfile | Windows Server 1903 | 05/24/2019 23:24:44 | 11/10/2020 22:19:03 |
windowsservercore | amd64 | Dockerfile | Windows Server 1903 | 11/10/2020 22:24:57 | 11/10/2020 22:24:57 |
latest | amd64 | Dockerfile | Windows Server 1903 | 11/10/2020 22:24:57 | 11/10/2020 22:24:57 |
20201110-windowsservercore-ltsc2019 | amd64 | Dockerfile | Windows Server 2019 | 11/10/2020 22:18:23 | 11/10/2020 22:18:23 |
windowsservercore-ltsc2019 | amd64 | Dockerfile | Windows Server 2019 | 11/15/2018 11:18:50 | 11/10/2020 22:17:52 |
windowsservercore | amd64 | Dockerfile | Windows Server 2019 | 11/10/2020 22:24:57 | 11/10/2020 22:24:57 |
latest | amd64 | Dockerfile | Windows Server 2019 | 11/10/2020 22:24:57 | 11/10/2020 22:24:57 |
20201110-windowsservercore-ltsc2016 | amd64 | Dockerfile | Windows Server 2016 | 11/10/2020 22:20:11 | 11/10/2020 22:20:11 |
windowsservercore-ltsc2016 | amd64 | Dockerfile | Windows Server 2016 | 11/15/2018 11:54:57 | 11/10/2020 22:19:50 |
windowsservercore | amd64 | Dockerfile | Windows Server 2016 | 11/10/2020 22:24:57 | 11/10/2020 22:24:57 |
latest | amd64 | Dockerfile | Windows Server 2016 | 11/10/2020 22:24:57 | 11/10/2020 22:24:57 |
Multi-arch Images
Tags | Achitecture | OS | OsVersion | CreatedTime | LastUpdated Time |
---|---|---|---|---|---|
windowsservercore | amd64 | Windows | Windows Server 1903, Windows Server 1909, Windows Server 2004, Windows Server 2009, Windows Server 2016, Windows Server 2019 | 11/10/2020 22:24:57 | 11/10/2020 22:24:57 |
latest | amd64 | Windows | Windows Server 1903, Windows Server 1909, Windows Server 2004, Windows Server 2009, Windows Server 2016, Windows Server 2019 | 11/10/2020 22:24:57 | 11/10/2020 22:24:57 |
You can retrieve a list of all available tags for windows/servercore/iis at https://mcr.microsoft.com/v2/windows/servercore/iis/tags/list
Feedback
If you have any issues or concerns, reach out to us through a GitHub issue.
License
- Legal Notice: Container License Information
MICROSOFT SOFTWARE SUPPLEMENTAL LICENSE TERMS
CONTAINER OS IMAGE
Microsoft Corporation (or based on where you live, one of its affiliates) (referenced as “us,” “we,” or “Microsoft”) licenses this Container OS Image supplement to you (“Supplement”). You are licensed to use this Supplement in conjunction with the underlying host operating system software (“Host Software”) solely to assist running the containers feature in the Host Software. The Host Software license terms apply to your use of the Supplement. You may not use it if you do not have a license for the Host Software. You may use this Supplement with each validly licensed copy of the Host Software.
ADDITIONAL LICENSING REQUIREMENTS AND/OR USE RIGHTS
Your use of the Supplement as specified in the preceding paragraph may result in the creation or modification of a container image (“Container Image”) that includes certain Supplement components. For clarity, a Container Image is separate and distinct from a virtual machine or virtual appliance image. Pursuant to these license terms, we grant you a restricted right to redistribute such Supplement components under the following conditions:
(i) you may use the Supplement components only as used in, and as a part of, your Container Image,
(ii) you may use such Supplement components in your Container Image as long as you have significant primary functionality in your Container Image that is materially separate and distinct from the Supplement; and
(iii) you agree to include these license terms (or similar terms required by us or a hoster) with your Container Image to properly license the possible use of the Supplement components by your end-users.
We reserve all other rights not expressly granted herein.
By using this Supplement, you accept these terms. If you do not accept them, do not use this Supplement.
As part of the Supplemental License Terms for this Container OS Image for Windows containers, you are also subject to the underlying Windows Server host software license terms, which are located at https://www.microsoft.com/en-us/useterms
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK