How To Install Docker Engine On Windows Server 2016

How To Install Docker Engine On Windows Server 2016

 

In this blog post, I’ll show you How To Install Docker Engine On Windows Server 2016 and run a Windows Container running a Dot Net application.

Docker Engine, Is most used and popular Container Management engine that allow us to create, delete, stop, start Containers using a set of commands that are easy to remember.

The Docker Engine was first Introduced In 2014 was available on Linux only however In early 2015 Docker and Microsoft developed the Docker Engine for Windows Server which Is the same Engine as the Linux engine but for Windows.

Docker on Windows Is fully supported by Docker as part of the Microsoft \ Docker commercial support agreement.

The Installation process Is simple and doesn’t require a reboot, However, It’s recommended your Docker Host has enough RAM and CPU to run the Container.

To get, Started, I’ll start with the Installation of the Docker Provider using:

Install-Module -Name DockerMsftProvider -Repository PSGallery -Force
How To Install Docker Engine On Windows Server 2016
How To Install Docker Engine On Windows Server 2016

Next, run the cmdlet below to Install the Docker PowerShell Provider Module:

Install-Package -Name docker -ProviderName DockerMsftProvider
How To Install Docker Engine On Windows Server 2016
How To Install Docker Engine On Windows Server 2016

Once Installed, I’ll check the Installed Docker version using:

Docker version
How To Install Docker Engine On Windows Server 2016
How To Install Docker Engine On Windows Server 2016

To run a test Container, Open PowerShell, and Import the module:

Import-Module dockermsftprovider

To run the sample Dotnet container:

docker run microsoft/dotnet-samples:dotnetapp-nanoserver

As you can see below the container Is running.




Search blogs




Bitnami