‘262019 Nano Server: Gating Started in Container with Dackar - TechNet Articles - United States (English) - TechNet Wik
Nano Server: Getting Started in Container with Docker
‘This TechNet Wik article provides an overview on how to pull a Windows Server 2016 Nano Sever container image using Decker and ran a Nano Server container
‘sing Windows Containers feature on Windows 10. This page focuses on Windows Sever 2016 NanoServer deployment preparation in Windows Containers
fmvtonment th Docker
Table of Contents
‘Lintdtion
2 Bagueamants
‘Preparation on Windows 10
$33, Download Daceer using PowerShell
134 stall Dackr using PowarShll
2.5. Sitch Dacker Linas Containers to Windows Containers engine using
Powarshal
"26 Validate Docker son Windows Containers engine using DockerCll
‘4. Gating Stated with NanoSarver Container
“1 Pull 3 NanoServer Container image using DockerCul
yesusing Dock
43. Cuate anew NanaSener container rom the image vsing DackerCLL
‘44 List all valsble containers sing OockerCI
145. Create a PowerShell stot le for deme
146, Conya file from host to container ving Docker
‘42 Stat he container using DockerCL!
‘Working within tha NanoSarver Container
‘List the les and directories ving 00S Command
53. Brecute the PowerShell Script within the NanoServer containes
5. Stop the combine graceful sing DockercLL
{Maintaining the images and containers
£1 Dislay avilable images or containers
£62. Remove the container using DockerCL!
63. Remove he image using Dork
conclusion
12 lst al valab
Senko
1. Introduction
‘with the nest release of NanoServer, NanoServer is the lanest and meanest Windows operating system for contsinerzation for developers and this walkthrough ill
{get you started working on NanoServer container in your Windows 10 quickly
1 tun top
2. Requirements
In order to worc on NanoServer container, you wl need to meeting the following requirements below.
+ Hyper Feature in Windows 10
1 Containers Feature in Windows 10
* Docker" (Download here)
1 Ratu to Tp
hitps/iscialochnet microsoft. comMuikcontentslarticles38652.nano-servergetting-sarted-In-container-with-docker.aspx 19‘262019 Nano Server: Gating Started in Container with Dackar - TechNet Articles - United States (English) - TechNet Wik
3. Preparation on Windows 10
Let us begin in preparing your Windows 1 to run Nan Server container.
1 Ratu to Top
3.1. Install Hyper-V and Containers Windows 10 Features
Fist, weil nee to enable the following Windows 10 Features to start oft
4 Enable Hyper-V and Containers Windows 10 Features
Enable-Windows0ptionalFeature
-~FeatureNare "Wicrosoé*-Hyper
1 "Containers"
1 Return too
3.2. Validate Hyper-V and Containers Windows 10 Features are Enabled
Not vacate tht Mirosot-Hyper-V and Containers are enabled
4 Validate Microsoft-Hyper-V and Containers Windows 18 Features
4 (5 Enabled
“Microsoft-Hyper-V", "Containers" |
Forgach-object {
et -windowsoptionalFeature
“FeatureNane $_
Online ;
1 Return to To
3.3. Download Docker using PowerShell
‘once we have validated Windows 10 requirements are met let us download ne Docker for Windows package using PowerShell
1 Download Cocker package
nvoke-WebRequest
“uk "https: //download. decker con/win/stable/Tastal becker asi
-OutFile "C:\Tenp\Installvocker.nsi ;
1 Return too
hitps/fsocialochnet microsoft comMuikicontentslarticles'38652.nano-eerver-gottng-started-in-conta‘262019 Nano Server: Gating Started in Container with Dackar - TechNet Articles - United States (English) - TechNet Wik
3.4, Install Docker using PowerShell
(Once the download has completed tus install he Docker for Windows using PowerShell
4# Instatt Docker
“FilePath "C:\windows\systens2\estexec. exe"
ArgurentList '/T C:\Tenp\Tnstaldocker.msi /quiet®
wait 5
‘Once the instalation has complete, restart your Windows 10
1 Return too
3.5. Switch Docker Linux Containers to Windows Containers engine using PowerShell
‘Alter reboot and you have logge into Windows, switch the Dockers default Linx Containers to Windows Containers engine sing PowerShell
¥ Switch Docker to Windows Containers
“FilePath "C:\Progran Files\Docker\Docker\bockerct exe"
-ArgurentList '-SwitchDaenen"
cuait
1 Return to tp
3.6. Validate Docker is on Windows Containers engine using DockerCL!
Use the DockerCLI with Info parameter to generate a gener information af he system an cenfrm tation Windows 10 operating system instead of Linux
# Display Docker Inforeation using
# bocker info command
hitps/iscialochnet microsoft. comMuikcontentslarticles38652.nano-servergetting-sarted-In-container-with-docker.aspx
39