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
