DevOps Classroom Series – 31/Mar/2021

Installing Docker on Windows Server

  • Lets create a Windows Server 2016 instance in any cloud
  • Refer Here for the official docs from microsoft
  • Launch powershell as admin and execute the following commands
Set-ExecutionPolicy unrestricted
 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Install-Module -Name DockerMsftProvider -Repository PSGallery -Force
Install-Package -Name docker -ProviderName DockerMsftProvider
Restart-Computer -Force

  • Post machine restart, Launch Powershell as admin
docker info

  • Now lets try to pull iis server image
  • Now lets run the container
  • Run the following command
docker container exec -it <container id/name> powershell

  • To get info about the disks in the container run the powershell commands as Refer Here

Installing docker on Windows 10

  • Refer Here for official documentation
  • Refer Here to download installer
  • Docker can be installed using chocolatey Refer Here
  • Now logout or restart the machine
  • Launch powershell as admin & then execute docker info

Leave a comment

Turn on JavaScript to leave a comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Social Network Integration by Acurax Social Media Branding Company
Exit mobile version
%%footer%%