Install Docker on Windows Server
i12bretro
#Docker #Windows #Server
Full steps can be found at https://i12bretro.github.io/tutorials/0194.html
- Launch PowerShell as an administrator and run the following command: Install-WindowsFeature -Name Containers Restart-Computer -Force
- The server will reboot
- After logging back in, relaunch PowerShell and continue with the following commands:
Install-Module -Name DockerMsftProvider -Repository PSGallery -Force
Press Y to install the NuGet provider
Install-Package -Name docker -ProviderName DockerMsftProvider -Force Start-Service docker docker image pull mcr.microsoft.com/dotnet/core/aspnet:3.0 docker image pull mcr.microsoft.com/dotnet/core/sdk:3.0.100 docker container run -d -p 8080:80 sixeyed/whoami-dotnet:3.0 - Open a web browser and navigate to http://localhost:8080
- To run another example container, execute the following in PowerShell docker run hello-world
- Docker will download the hello-world container and execute it, displaying following output:
Hello from Docker!
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
- The Docker client contacted the Docker daemon.
- The Docker daemon pulled the "hello-world" image from the Docker Hub. (amd64)
- The Docker daemon created a new container from that image which runs the executable that produces the output you are currently reading.
- The Docker daemon streamed that output to the Docker client, which sent it to your terminal.
Connect with me and others
Discord: https://discord.com/invite/EzenvmSHW8 Twitter: https://twitter.com/i12bretro ... https://www.youtube.com/watch?v=0ccqrqNAlJ8
2021-11-20
0.02525603 LBC
Copyrighted (contact publisher)
13035254 Bytes