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](https://i0.wp.com/directdevops.blog/wp-content/uploads/2021/03/docker128.png?w=800&ssl=1)
- Post machine restart, Launch Powershell as admin
docker info
![Preview](https://i0.wp.com/directdevops.blog/wp-content/uploads/2021/03/docker129.png?w=800&ssl=1)
- 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
![Preview](https://i1.wp.com/directdevops.blog/wp-content/uploads/2021/03/docker135.png?w=800&ssl=1)
![Preview](https://i1.wp.com/directdevops.blog/wp-content/uploads/2021/03/docker136.png?w=800&ssl=1)
- 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