Date

Installing Docker on Windows Server 2016/2019 using Manifest File

Summary :

In this article we will learn to install Docker on Window Server using Docker Manifest file

Prerequisites:

=

Step by Step process

  1. First step is to download a “manifest” file that contains the list of known Docker package versions along with the correct URL to download them

Start-BitsTransfer -Source https://dockermsft.blob.core.windows.net/dockercontainer/DockerMsftIndex.json

  1. Open DockerMsftIndex.json in a text editor and copy the URL that corresponds to the version you want to install:
    For example,for version 18.09.9 :
    https://dockermsft.blob.core.windows.net/dockercontainer/docker-18-09-9.zip

Start-BitsTransfer -Source https://dockermsft.blob.core.windows.net/dockercontainer/docker-18-09-9.zip -Destination /docker-18-09-9.zip

  1. Extract the archive
  2. Add Docker to the path for the current session.

cd / 

$env:path += ";$env:ProgramFilesdocker"

  1. Optionally, modify PATH to persist across sessions.

$newPath = "$env:ProgramFilesdocker;" + 

>> [Environment]::GetEnvironmentVariable("PATH", 

>> [EnvironmentVariableTarget]::Machine)

[Environment]::SetEnvironmentVariable("PATH", $newPath, 

>> [EnvironmentVariableTarget]::Machine)

  1. Register the Docker daemon as a service.

dockerd --register-service

  1. Start the Docker service.

Start-Service docker

  1. Verify the Docker Version

docker version

  1. Test your Docker EE installation by running the hello-world container.

docker container run hello-world:nanoserver

Status: Downloaded newer image for hello-world:nanoserver

AZmachina

Knowledge Shared = Knowledge2

We have created AZmachina blog to share our knowledge on Docker & Container and Kubernetes on Windows Servers with curious and enthusiastic novice learner. We hope that this will help them to take a swim in this vast ocean of Window Containers and Kubernetes

Happy Learning !
Recent Posts
Categories
Archives
Sumeet Kumar

Sumeet Kumar

I am Windows Core Engineer with 7+ years of experience in Windows Hyper-v, Failover Cluster, Windows Storage, Volume Shadow Copy (VSS), Docker & Containers on Windows Servers, Backup & Recovery, VMware vSphere EXSi & vCenter Server

RELATED

Articles

Leave a Reply

Your email address will not be published. Required fields are marked *