Docker Installation on windows server 2016

Hello,

I have successfully installed Docker in my windows server 2016 after too much trial and run method.

To have a clear idea of installation, I am trying to install docker in another server with a similar configuration.

I am noticing that when docker is installed in my working server I see a docker folder inside my docker folder with all docker CLI which I am not able to replicate in the new server

d-----        5/26/2021   1:24 PM                .docker
d-----        5/25/2021   1:22 PM                cli-plugins
da----        5/26/2021   1:23 PM                Docker  --- this folder is not available in new server 
-a----        5/26/2021   2:12 PM           1103 config.json
-a----        5/26/2021   2:58 PM            132 daemon.json
-a----        4/12/2021   5:42 PM       66191192 docker.exe
-a----        4/12/2021   5:42 PM       80815960 dockerd.exe
-a----         2/2/2021   5:18 PM        2454016 libeay32.dll
-a----        5/11/2017  10:32 PM          56978 libwinpthread-1.dll
-a----        4/12/2021   3:40 PM           6124 licenses.txt
-a----        5/25/2021   1:23 PM            142 metadata.json
-a----         2/2/2021   5:18 PM         357888 ssleay32.dll
-a----         6/9/2016  10:53 PM          87888 vcruntime140.dll

    Directory: C:\program files\docker\docker


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----        5/26/2021   1:23 PM                resources
-a----        5/26/2021   1:21 PM          53248 Bugsnag.dll
-a----        5/26/2021   1:21 PM         161280 Bugsnag.pdb
-a----        5/26/2021   1:21 PM          15912 com.docker.service
-a----        5/26/2021   1:21 PM            184 com.docker.service.config
-a----        5/26/2021   1:21 PM         329368 concrt140.dll
-a----        5/26/2021   1:23 PM        3376168 Docker for windows Installer.exe
-a----        5/26/2021   1:21 PM        1821184 Docker for Windows.exe
-a----        5/26/2021   1:21 PM            622 Docker for Windows.exe.config
-a----        5/26/2021   1:21 PM         120320 Docker for Windows.pdb
-a----        5/26/2021   1:21 PM         105472 Docker.Backend.dll
-a----        5/26/2021   1:21 PM            181 Docker.Backend.dll.config
-a----        5/26/2021   1:21 PM         214528 Docker.Backend.pdb
-a----        5/26/2021   1:21 PM         113664 Docker.Core.dll
-a----        5/26/2021   1:21 PM            179 Docker.Core.dll.config
-a----        5/26/2021   1:21 PM         306688 Docker.Core.pdb
-a----        5/26/2021   1:21 PM          17920 Docker.Service.pdb
-a----        5/26/2021   1:21 PM          18968 Docker.Watchguard.exe
-a----        5/26/2021   1:21 PM        2101248 Docker.Watchguard.pdb
-a----        5/26/2021   1:21 PM         320512 Docker.Win32Helpers.dll
-a----        5/26/2021   1:21 PM        2084864 Docker.Win32Helpers.pdb
-a----        5/26/2021   1:21 PM        4745216 Docker.WPF.dll
-a----        5/26/2021   1:21 PM            635 Docker.WPF.dll.config
-a----        5/26/2021   1:21 PM         564736 Docker.WPF.pdb
-a----        5/26/2021   1:21 PM          24072 DockerCli.exe
-a----        5/26/2021   1:21 PM            530 DockerCli.exe.config
-a----        5/26/2021   1:21 PM          36352 DockerCli.pdb
-a----        5/26/2021   1:21 PM         196096 ICSharpCode.SharpZipLib.dll
-a----        5/26/2021   1:23 PM           2470 installationmanifest.json
-a----        5/26/2021   1:21 PM          20504 InstallerCli.exe
-a----        5/26/2021   1:21 PM            530 InstallerCli.exe.config
-a----        5/26/2021   1:21 PM          22016 InstallerCli.pdb
-a----        5/26/2021   1:21 PM          36864 Microsoft.Management.Infrastructure.dll
-a----        5/26/2021   1:21 PM          90456 Microsoft.Toolkit.Uwp.Notifications.dll
-a----        5/26/2021   1:21 PM         286208 Microsoft.Toolkit.Uwp.Notifications.pdb
-a----        5/26/2021   1:21 PM          50176 Microsoft.Windows.ComputeVirtualization.dll
-a----        5/26/2021   1:21 PM         625808 msvcp140.dll
-a----        5/26/2021   1:21 PM          31896 msvcp140_1.dll
-a----        5/26/2021   1:21 PM         195248 msvcp140_2.dll
-a----        5/26/2021   1:21 PM         662528 Newtonsoft.Json.dll
-a----        5/26/2021   1:21 PM         524800 NLog.dll
-a----        5/26/2021   1:21 PM        1467904 NLog.pdb
-a----        5/26/2021   1:21 PM         360448 System.Management.Automation.dll
-a----        5/26/2021   1:21 PM         185544 System.Net.Http.Formatting.dll
-a----        5/26/2021   1:21 PM          23552 System.Net.IPNetwork.dll
-a----        5/26/2021   1:21 PM          28216 System.Runtime.WindowsRuntime.dll
-a----        5/26/2021   1:21 PM          30312 System.Runtime.WindowsRuntime.UI.Xaml.dll
-a----        5/26/2021   1:21 PM          78992 System.ValueTuple.dll
-a----        5/26/2021   1:21 PM         386720 vccorlib140.dll
-a----        5/26/2021   1:21 PM          87200 vcruntime140.dll

followed below steps

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 Install-Module PowerShellGet -RequiredVersion 2.2.4 -SkipPublisherCheck

Install-Module -Name DockerMsftProvider -Repository PSGallery –Force

Install-Package -Name docker -ProviderName DockerMsftProvider -verbose

get-service docker

start-service docker

docker version

docker pull microsoft/dotnet:2.1-aspnetcore-runtime-nanoserver-sac2016

I am using the below commands from Powershell in administrator mode but still, docker is not successfully installed. I cannot see the docker folder inside the docker folder with docker CLI exe files.

Can anybody help to figure out what is not correct in below

My server is windows server 2016 with hyper-v and container service already installed.

1. Install-WindowsFeature -Name Containers -Restart

2. New-Item -Type Directory -Path ‘C:\Program Files\Docker’ -Force

3. [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

4. Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force

5. To install the windows update, type sconfig command. // https://www.assistanz.com/steps-to-install-docker-on-windows-2016-server-core/

6. [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12
Register-PSRepository -Default -Verbose
Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted

7.  Install-Module -Name PowerShellGet

8.  docker run -ti microsoft/windowsservercore powershell

9.	Windows PowerShelldocker run -ti microsoft/windowsservercore powershell

10.	docker run -ti microsoft/windowsservercore powershell

11	docker run --isolation=hyperv microsoft/nanoserver

12.	Install-Module -Name DockerMsftProvider -Repository PSGallery -Force
13.	register-psrepository -Default
14.	Install-Module -Name DockerMsftProvider -Repository PSGallery -Force

15.	Get-PSRepository

16.	[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 
	
17.Install-Module PowerShellGet -RequiredVersion 2.2.4 -SkipPublisherCheck

18.	[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12

19.	Register-PSRepository -Default -Verbose

20.	Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted

21.	Get-PSRepository
22.	Find-PackageProvider -Name nuget

23.	Install-Module -Name DockerMsftProvider -Repository PSGallery -Force

24.	Get-PSRepository
	'.\Downloads\Docker for Windows Installer.exe'
	& '.\Downloads\Docker for Windows Installer.exe'
	
25.	docker run -ti microsoft/windowsservercore powershell

26.	Windows PowerShelldocker run --isolation=hyperv microsoft/nanoserver
	
27.	Register-PSRepository -Name PSGallery -SourceLocation https://www.powershellgallery.com/api/v2/
	
28.	Get-Module -Name PowerShellGet -ListAvailable | Install-Module -Force
	
29.	Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted
	
30.	[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12
	
31.	Register-PSRepository -Default -Verbose

32.	Find-Module PSWindowsUpdate

33.	Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201     -Verbose -Force
	
34.	Install-Module -Name DockerMsftProvider -Repository PSGallery -Force

35.	Install-PackageProvider -Name NuGet -Force | Out-Null;Install-Module PackageManagement -Force;Install-Module PowerShellGet -Force

36.	Install-Module DockerMsftProvider -Force 
	
37.	Install-Package Docker -ProviderName DockerMsftProvider -Force 

38.	dockerd
	
39.	Restart-Computer -Force

```*emphasized text*