Sunday, January 5, 2020

Run the following set of steps one by one to install and configure Docker on Windows 10:

Run the following set of steps one by one to install and configure Docker on Windows 10:
       Invoke-WebRequest "https://master.dockerproject.org/windows/
       amd64/docker-1.13.0-dev.zip" -OutFile "$env:TEMP\docker-1.13.0
       -dev.zip"
       -UseBasicParsing       Expand-Archive -Path "$env:TEMP\docker-1.13.0-dev.zip"
       -DestinationPath $env:ProgramFiles       $env:path += ";c:\program files\docker"       [Environment]::SetEnvironmentVariable("Path", $env:Path + ";
       C:\Program Files\Docker", [EnvironmentVariableTarget]::Machine)       dockerd --register-service
  1. Start the Docker Service by running the following command:
       Start-Service docker
  1. In order to develop Windows Server Containers, we need any Windows base OS image, such as windowsservercore or nanoserver. Since Windows 10 supports Nano Servers only, run the following command to download the nanoservercore base OS image (we have a dedicated chapter for learning development using Nano Server images). The following command might take some time depending on your bandwidth; it downloads and extracts the nanoserver base OS image, which is 970 MB in size, approximately:
       docker pull microsoft/nanoserver
At the time of writing, Windows 10 can only run Nano Server images. Even though the windowsservercore image gets downloaded successfully, running containers using this image will fail due to incompatibility with the OS.
  1. Ensure that the images are successfully downloaded by running the following command:
       docker images
The preceding command gives the following output:
Now you are ready to start container development on Windows 10, you can directly skip to the Windows Server Containers development section to start creating Windows Containers.

No comments:

Post a Comment

Remote Hybrid and Office work