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.

2 Comments

  • Muthu

    Hi karthikeyan,

    I have a .NET Framework app of verion 4.6.1 and trying to dockerize and i am new to Docker, Can you please guide me what are the instructions i need to follow to dockerize .Net Framework app.
    I have Microsoft Windows server 2016 Standard . Please Help me in this.

  • Gopinath Karthikeyan

    Hi Muthu,

    As I understand that you are looking for docker container which can run .NET framework application.

    First, install docker on your Windows server 2016. follow the instructions in the video link https://www.youtube.com/watch?v=b7s0VmESe2Q

    Customize the .NET Framework Runtime docker image to run your application. .NET Framework Runtime docker image is available in docker hub https://hub.docker.com/_/microsoft-dotnet-framework-runtime/ Follow the guide lines provided in the document.

    Follow the above instructions and let me know if you have any issues.

    Note: To upload your customized docker image to the docker hub, you must need an account in docker hub. Creating an account in docker hub is absolutely free.

    Regards,
    Gopinath Karthikeyan

Leave a Reply

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