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

Preview

  • Post machine restart, Launch Powershell as admin
docker info

Preview

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

Preview Preview

  • 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 Preview
  • Now logout or restart the machine
  • Launch powershell as admin & then execute docker info

Leave a Reply

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

About learningthoughtsadmin