{"id":2332,"date":"2017-08-09T20:49:01","date_gmt":"2017-08-09T20:49:01","guid":{"rendered":"http:\/\/microsoftgeek.com\/?p=2332"},"modified":"2017-08-09T20:49:09","modified_gmt":"2017-08-09T20:49:09","slug":"how-to-deploy-windows-containers","status":"publish","type":"post","link":"https:\/\/microsoftgeek.com\/?p=2332","title":{"rendered":"How To Deploy Windows Containers"},"content":{"rendered":"<p>In this article, I\u2019ll show you how to deploy Windows Containers on Windows Server 2016 with the Docker Engine management tool.<span id=\"more-15539\"><\/span><\/p>\n<p>Windows Containers\u00a0was first released with Windows Server 2016 and it was In the making for a few years before the release.<\/p>\n<p>The management tool for Windows Containers Is Docker Engine which offers a set of commands that allows us to manage, create and delete Containers.<\/p>\n<p>Windows Containers has two components, The first Is the Windows Containers Server role and the 2nd Is the Docker Engine for Windows Server which both are Installed during the Installation steps below.<\/p>\n<p>Microsoft has managed to streamline the Installation of the two components using a set of a few PowerShell cmdlets.<\/p>\n<p>To Install Docker for Windows on a Windows Server 2016 open a PowerShell console and type the cmdlet below (you will need Internet access from the server to download Docker Engine PowerShell Module).<\/p>\n<pre>Install-Module -Name DockerMsftProvider -Repository PSGallery -Force<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i1.wp.com\/www.ntweekly.com\/wp-content\/uploads\/2017\/06\/060117_2231_HowtoDeploy1.png?w=525&amp;ssl=1\" alt=\"\" width=\"524\" height=\"96\" \/><\/p>\n<p>Next, run the cmdlet below to Install the Docker PowerShell Provider:<\/p>\n<pre>Install-Package -Name docker -ProviderName DockerMsftProvider<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.ntweekly.com\/wp-content\/uploads\/2017\/06\/060117_2231_HowtoDeploy2.png?w=525&amp;ssl=1\" alt=\"\" width=\"524\" height=\"80\" \/><\/p>\n<p>Once done, Restart the Sever.<\/p>\n<p>To check the Installed docker version type:<\/p>\n<pre>docker version<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.ntweekly.com\/wp-content\/uploads\/2017\/06\/060117_2231_HowtoDeploy3.png?w=525&amp;ssl=1\" alt=\"\" width=\"524\" height=\"231\" \/><\/p>\n<p>To test If the Installation was successful, I\u2019ll download a sample Container Image and run a new Windows Container.<\/p>\n<p>First I\u2019ll import the module using the cmdlet:<\/p>\n<pre>Import-Module dockermsftprovider<\/pre>\n<p>To run the sample Dotnet container, I\u2019ll use the command below to download and run the Dot Net Sample Container<\/p>\n<pre>docker run microsoft\/dotnet-samples:dotnetapp-nanoserver<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.ntweekly.com\/wp-content\/uploads\/2017\/06\/060117_2231_HowtoDeploy4.png?w=525&amp;ssl=1\" alt=\"\" width=\"524\" height=\"126\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.ntweekly.com\/wp-content\/uploads\/2017\/06\/060117_2231_HowtoDeploy5.png?w=525&amp;ssl=1\" alt=\"\" width=\"524\" height=\"370\" \/><\/p>\n<p>As you can see below my Windows Container Is running.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, I\u2019ll show you how to deploy Windows Containers on Windows Server 2016 with the Docker Engine management tool. Windows Containers\u00a0was first released with Windows Server 2016 and it was In the making for a few years before the release. The management tool for Windows Containers Is Docker Engine which offers a set [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[67,63],"tags":[],"class_list":["post-2332","post","type-post","status-publish","format-standard","hentry","category-windows-containers-containers","category-server-2016-2016"],"_links":{"self":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2332","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=2332"}],"version-history":[{"count":2,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2332\/revisions"}],"predecessor-version":[{"id":2334,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2332\/revisions\/2334"}],"wp:attachment":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2332"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2332"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2332"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}