top of page

Docker on Windows Server 2016

  • Mohan Sekar
  • Nov 14, 2017
  • 1 min read

Steps to Install Docker on windows using PowerShell

Open an elevated PowerShell session and follow these steps:

1. Install the containers feature

Install-WindowsFeature containers

2. Restart the machine

Restart-Computer -Force

Once restarted, re-open an elevated PowerShell session and install Docker.

3. Download the Docker engine

Invoke-WebRequest "https://download.docker.com/components/engine/windows- server/17.06/docker-17.06.2-ee-4.zip" -OutFile "$env:TEMP\docker.zip" -UseBasicParsing

4. Install the Docker engine

Expand-Archive -Path "$env:TEMP\docker.zip" -DestinationPath $env:ProgramFiles

5. Add the Docker directory in the system path

[Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\Program Files\Docker", [EnvironmentVariableTarget]::Machine)

6. Register the Docker deamon as a service

dockerd.exe --register-service

7. Start the Docker service

Start-Service Docker

After this step, you should be able to work with Docker on your machine. You can type docker info to check that all is good.

Comments


RECENT POSTS:
SEARCH BY TAGS:

© 2023 by NOMAD ON THE ROAD. Proudly created with Wix.com

  • b-facebook
  • Twitter Round
  • Instagram Black Round
bottom of page