0194.html 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Install Docker on Windows Server</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="Docker,Windows,Windows Server,Installation,Powershell,How To,Tutorial,i12bretro">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Install Docker on Windows Server">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="05/23/2022 08:54:29 PM" />
  12. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  13. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  14. <script type="text/javascript" src="includes/js/steps.js"></script>
  15. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="gridContainer">
  19. <div class="topMargin"></div>
  20. <div id="listName" class="topMargin">
  21. <h1>Install Docker on Windows Server</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <ol>
  26. <li>Launch PowerShell as an administrator and run the following command:
  27. <div class="codeBlock">Install-WindowsFeature -Name Containers<br />
  28. Restart-Computer -Force</div>
  29. </li>
  30. <li>The server will reboot</li>
  31. <li>After logging back in, relaunch PowerShell and continue with the following commands:
  32. <div class="codeBlock">Install-Module -Name DockerMsftProvider -Repository PSGallery -Force<br />
  33. # Press Y to install the NuGet provider<br />
  34. Install-Package -Name docker -ProviderName DockerMsftProvider -Force<br />
  35. Start-Service docker<br />
  36. docker image pull mcr.microsoft.com/dotnet/core/aspnet:3.0<br />
  37. docker image pull mcr.microsoft.com/dotnet/core/sdk:3.0.100<br />
  38. docker container run -d -p 8080:80 sixeyed/whoami-dotnet:3.0</div>
  39. </li>
  40. <li>Open a web browser and navigate to http://localhost:8080</li>
  41. <li>To run another example container, execute the following in PowerShell
  42. <div class="codeBlock">docker run hello-world</div>
  43. </li>
  44. <li>Docker will download the hello-world container and execute it, displaying following output:
  45. <p>Hello from Docker!<br />
  46. This message shows that your installation appears to be working correctly.</p>
  47. <p>To generate this message, Docker took the following steps:<br />
  48. &nbsp;1. The Docker client contacted the Docker daemon.<br />
  49. &nbsp;2. The Docker daemon pulled the &quot;hello-world&quot; image from the Docker Hub.<br />
  50. &nbsp; &nbsp; (amd64)<br />
  51. &nbsp;3. The Docker daemon created a new container from that image which runs the<br />
  52. &nbsp; &nbsp; executable that produces the output you are currently reading.<br />
  53. &nbsp;4. The Docker daemon streamed that output to the Docker client, which sent it<br />
  54. &nbsp; &nbsp; to your terminal.</p>
  55. </li>
  56. </ol>
  57. </div>
  58. </div>
  59. </body>
  60. </html>