How to Install Docker on Windows Server 2016? Dockers

Kernel containerization is a feature that is available in Windows 2016 and is a platform for software packages to run as a service product. It uses OS-level virtualization to deliver software packages called containers. We need to ensure all the windows server security patches are updated before the installation of Docker.

VERIFYING WINDOWS UPDATES

Go to start menu and click on settings.

VERIFYING WINDOWS UPDATES

Then click on the Update & security option.

Update & security option

We need to ensure that the container host has completely update-to-date.

update status

INSTALLING NUGET PROVIDER

Click on the start menu and right-click on PowerShell icon to run as administrator.

INSTALLING NUGET PROVIDER

PowerShell icon to run as administrator

Nuget Installation

To install the Nuget PowerShell module use following command.

Install-Module -Name DockerMsftProvider -Repository PSGallery –Force

It will prompt you to install NuGet provider. Type Y and press enter to continue

Nuget Installation

NuGet provider

prompt you to install NUGET provider

Once the installation is over it will return to PowerShell command-line mode.

Docker Installation

In PowerShell please execute the following command to install Docker service.

Install-Package -Name docker -ProviderName DockerMsftProvider –verbose

Docker Installation

install Docker service

Next press Y to continue the installation.

Now the Docker will be installed on this server. Reboot the host server once the installation completed.

Docker will be installed on this server

After the reboot, in PowerShell use the following command to check the status of Docker service.

get-service docker

get-service docker

To start the docker service, please use the following command from PowerShell screen.

start-service docker

start-service docker

Complete the installation by the verification.

Go to C:\Program Files folder and you can view the folder named Docker and it has docker.exe, metadata.json files.

metadata.json files

Docker installed and running

Execute the following command to check the version Docker installed and running on this server.

It will show both server & client engine versions.

docker version

docker version

We have successfully installed Docker on Windows 2016 server.

At Velan, our server support engineers can help you installing Dockers on your Windows 2016 Server. We troubleshoot problems like these for our clients every day. If you are interested in our service, please fill the Quick connect form to get in touch with us

Credentials

Quick Connect With Us