{"id":2337,"date":"2017-08-09T20:54:19","date_gmt":"2017-08-09T20:54:19","guid":{"rendered":"http:\/\/microsoftgeek.com\/?p=2337"},"modified":"2017-08-09T20:54:19","modified_gmt":"2017-08-09T20:54:19","slug":"deploy-iis-on-windows-nano-server-2016-container","status":"publish","type":"post","link":"https:\/\/microsoftgeek.com\/?p=2337","title":{"rendered":"Deploy IIS On Windows Nano Server 2016 Container"},"content":{"rendered":"<p>Deploying IIS on A Windows Container can be done In two ways, First way deploy windows Nano Server Container and then Install IIS using DISM, Second way and more simple and recommended Is downloading a Windows Nano Server Image with IIS Installed and configured.<\/p>\n<p>In this article, I\u2019ll use the first option and In the next few days, I\u2019ll blog about the second option.<\/p>\n<p>To get started, I\u2019ll download the NanoServer IIS Container Image using the docker command below:<\/p>\n<pre>docker pull nanoserver\/iis<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i1.wp.com\/www.ntweekly.com\/wp-content\/uploads\/2017\/03\/031917_2142_DeployIISOn1.png?w=525\" alt=\"\" width=\"524\" height=\"274\" \/><\/p>\n<p>The Image size Is around 500 MB and once downloaded Is ready to deployed.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.ntweekly.com\/wp-content\/uploads\/2017\/03\/031917_2142_DeployIISOn2.png?w=525\" alt=\"\" width=\"524\" height=\"274\" \/><\/p>\n<p>To confirm that It\u2019s done, use the command below:<\/p>\n<pre>docker images<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i2.wp.com\/www.ntweekly.com\/wp-content\/uploads\/2017\/03\/031917_2142_DeployIISOn3.png?w=525\" alt=\"\" width=\"524\" height=\"274\" \/><\/p>\n<p>To create a Windows Nano Container with IIS, \u00a0I simply use the downloaded Image<\/p>\n<pre>Docker run -it --name nano1 -p 80:80 nanoserver\/iis<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.ntweekly.com\/wp-content\/uploads\/2017\/03\/031917_2142_DeployIISOn4.png?w=525\" alt=\"\" width=\"524\" height=\"274\" \/><\/p>\n<p>Next, I\u2019ll access it using Port Forwarding<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.ntweekly.com\/wp-content\/uploads\/2017\/03\/031917_2142_DeployIISOn5.png?w=525\" alt=\"\" width=\"524\" height=\"274\" \/><\/p>\n<p>Done<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.ntweekly.com\/wp-content\/uploads\/2017\/03\/031917_2142_DeployIISOn6.png?w=525\" alt=\"\" width=\"524\" height=\"341\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Deploying IIS on A Windows Container can be done In two ways, First way deploy windows Nano Server Container and then Install IIS using DISM, Second way and more simple and recommended Is downloading a Windows Nano Server Image with IIS Installed and configured. In this article, I\u2019ll use the first option and In the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[65,63],"tags":[],"class_list":["post-2337","post","type-post","status-publish","format-standard","hentry","category-nano-server-nano-server","category-server-2016-2016"],"_links":{"self":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2337","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2337"}],"version-history":[{"count":1,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2337\/revisions"}],"predecessor-version":[{"id":2338,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2337\/revisions\/2338"}],"wp:attachment":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2337"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2337"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2337"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}