Microsoft Windows 2016 supports Docker engine, running containers natively on Windows. To install Docker on Windows server you need to run:
- Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
- Install-Module -Name DockerMsftProvider -Force
- Install-Package -Name docker -ProviderName DockerMsftProvider -Force
- Restart-Computer -Force
After that run:
# Open firewall port 2375
- netsh advfirewall firewall add rule name="docker engine" dir=in action=allow protocol=TCP localport=2375
- Stop-Service docker
- dockerd --unregister-service
- dockerd -H npipe:// -H 0.0.0.0:2375 --register-service
- Start-Service docker
Comments
Post a Comment