- In portal.azure.com, go to New -> Compute -> Marketplace and search for Windows Server Container Preview.
- Make sure the TCP 2375 endpoint is open in Azure (Settings -> Endpoint)
- Access the VM via RDP
- Edit
C:\ProgramData\Docker\runDockerDaemon.cmd
, and add-H 0.0.0.0:2375
on line 11, in the docker daemon invocation inside therun
target - Enable
docker.exe
in the firewall:netsh advfirewall firewall add rule name="Allow Docker" dir=in action=allow program="C:\windows\system32\docker.exe"
- Restart the docker service with
sc stop docker
andsc start docker
docker -H tcp://<IP>:2375 run -it windowsservercore:latest cmd