1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <!DOCTYPE html>
- <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>Install Docker on Windows Server</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <meta charset="UTF-8">
- <meta name="keywords" content="Docker,Windows,Windows Server,Installation,Powershell,How To,Tutorial,i12bretro">
- <meta name="author" content="i12bretro">
- <meta name="description" content="Install Docker on Windows Server">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="revised" content="05/23/2022 08:54:29 PM" />
- <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
- <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
- <script type="text/javascript" src="includes/js/steps.js"></script>
- <link href="css/steps.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="gridContainer">
- <div class="topMargin"></div>
- <div id="listName" class="topMargin">
- <h1>Install Docker on Windows Server</h1>
- </div>
- <div></div>
- <div id="content">
- <ol>
- <li>Launch PowerShell as an administrator and run the following command:
- <div class="codeBlock">Install-WindowsFeature -Name Containers<br />
- Restart-Computer -Force</div>
- </li>
- <li>The server will reboot</li>
- <li>After logging back in, relaunch PowerShell and continue with the following commands:
- <div class="codeBlock">Install-Module -Name DockerMsftProvider -Repository PSGallery -Force<br />
- # Press Y to install the NuGet provider<br />
- Install-Package -Name docker -ProviderName DockerMsftProvider -Force<br />
- Start-Service docker<br />
- docker image pull mcr.microsoft.com/dotnet/core/aspnet:3.0<br />
- docker image pull mcr.microsoft.com/dotnet/core/sdk:3.0.100<br />
- docker container run -d -p 8080:80 sixeyed/whoami-dotnet:3.0</div>
- </li>
- <li>Open a web browser and navigate to http://localhost:8080</li>
- <li>To run another example container, execute the following in PowerShell
- <div class="codeBlock">docker run hello-world</div>
- </li>
- <li>Docker will download the hello-world container and execute it, displaying following output:
- <p>Hello from Docker!<br />
- This message shows that your installation appears to be working correctly.</p>
- <p>To generate this message, Docker took the following steps:<br />
- 1. The Docker client contacted the Docker daemon.<br />
- 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.<br />
- (amd64)<br />
- 3. The Docker daemon created a new container from that image which runs the<br />
- executable that produces the output you are currently reading.<br />
- 4. The Docker daemon streamed that output to the Docker client, which sent it<br />
- to your terminal.</p>
- </li>
- </ol>
- </div>
- </div>
- </body>
- </html>
-
|