Docker Installation Error ZIP does not exist

Docker Installation Error ZIP does not exist

In this blog we will show you how to resolve docker installation error and to install docker manually.

While installing Docker in Windows Servers you may get error like “Docker-18-08-0.Zip does not exist”.

Docker installation error

Solution:

  • Verify your system Updated patch installed, if not kindly patch your machine.
  • Check the name and Path of the ZIP file.

For example: C:\Users\ADMINI~1\AppData\Local\Temp\DockerMsftProvider\Docker-18-09-0.zip

  • Open Elevated PowerShell.
  • Download the file Docker-18-08-0.zip using below command

invoke-webrequest -UseBasicparsing -Outfile docker-18-09-0.zip https://dockermsft.blob.core.windows.net/dockercontainer/docker-18-09-0.zip -verbose

Download Docker file

  • Stop the docker daemon Service or it should be erroneous, because it was deleted when Install – Package failed.

Stop-Service docker

  • Skip the above step, if docker daemon Service is not installed in your machine or not started.
  • Extract the downloaded docker-18-09-0.zip to C:\program Files\ using below command

Expand-Archive docker-18-09-0.zip -DestinationPath $Env:ProgramFiles -Force

Extract the downloaded docker

  • Delete the downloaded ZIP File

Remove-Item -Force docker-18-09-0.zip

  • Set the Environment Variable Path for the Docker, so that we can access easily

$env:path += ";$env:ProgramFiles\docker"

$newPath = "$env:ProgramFiles\docker;" + [Environment]::GetEnvironmentVariable("PATH", [EnvironmentVariableTarget]::Machine)

[Environment]::SetEnvironmentVariable("PATH", $newPath, [EnvironmentVariableTarget]::Machine)

Set the Environment Variable Path for the Docker

  • Now Register Docker daemon Service to provide docker daemon service

dockerd --register-service

  • Finally Start the Service

Start-Service docker

 

Check other available versions of Docker (Optional)

To find the available Docker versions run the below command:

Find-Package -Name Docker -ProviderName DockerMsftProvider -AllVersions

find the available Docker versions

Note: Before running the above command, ensure the DockerMsftProvider module is imported from PSGallery.

Install Specific Version of Docker

To install Specific Version of Docker use RequiredVersion Flag:

Install-Package -Name docker -ProviderName DockerMsftProvider -RequiredVersion 18.03

Updating the Docker MsftProvider

To Update existing Docker MsftProvider, Use below command. Updating DockerMsftProvider module is mandatory while upgrading Docker.

Update-Module DockerMsftProvider

Update Docker Engine – Enterprise

To update the Docker Engine from Older version, use the below Command by specifying RequiredVersion Flag. Before providing the version number number, check the available docker versions .

Install-Package -Name docker -ProviderName DockerMsftProvider -RequiredVersion 18.09 -Update -Force

 

Thanks for reading this blog. We hope it was useful for you to resolve docker installation error and install docker manually.



Author: Gopinath Karthikeyan
Gopinath Karthikeyan holds 4+ Years of experience in Windows Data Center Operations. At AssistanZ, Gopinath Karthikeyan Supports Microsoft based core technologies to Enterprise clients.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.