Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Contact
  • Reviews
  • Toggle search form
Home » Containers » How to Install and Upgrade Docker Engine From Binaries
  • HyperV 1
    An error occurred while attempting to connect to the server: Check if the Virtual Machine Management service is running or you are not authorized to connect to this server Virtualization
  • update Docker desktop
    How to manually update Docker desktop Containers
  • VBAWS comprehensive guide
    Deep Dive into Protecting AWS EC2, RDS Instances and VPC AWS/Azure/OpenShift
  • image 77
    How to use the DigiCert certificate utility for Windows to create a CSR Windows
  • Screenshot 2020 05 13 at 22.49.32
    Fix for a boot image was not found for HyperV Virtual Machine Virtualization
  • Prevent the saving of RDP Credentials
    Prevent users from saving RDP Credentials on Windows 11 Windows
  • admin6 1
    How to run Apps as an administrator on Windows Windows
  • windows 10 technical preview windows 10 logo microsoft 97543 1920x1080
    Windows Editions: Various Operating Systems available for Windows Windows

How to Install and Upgrade Docker Engine From Binaries

Posted on 01/11/202120/09/2023 Christian By Christian No Comments on How to Install and Upgrade Docker Engine From Binaries
Docker for Windows

The article describes various ways to install the Docker daemon on Windows Server which enables you to run Windows containers only. The binaries for Windows do not contain Docker components such as buildx, docker scan, and docker-compose. If you are running Windows 10 or 11, you’ll need to install Docker Desktop. This comes with a cost and this is the reason why I created this guide to show you how to install the Docker Engine alone. Docker has announced changes to their pricing and subscriptions which require a paid subscription for users outside of personal, education, and small business use. Binary packages on Windows include both dockerd.exe and docker.exe. On Windows, these binaries only provide the ability to run native Windows containers (not Linux containers).

Kindly refer to these related guides: How to create and deploy a local Registry Server with Docker Image, how to Pull your first Nginx Container Image from Docker Hub and deploy it to your local machine, Azure DevOps and GitHub integration for Docker and Kubernetes deployment, how to create a static pod in Kubernetes, and how to install, register and start GitLab Runner on Windows.

Currently, due to licensing issues, you may want to install the Docker Engine only instead of the the Docker Desktop. The Docker Desktop helps you build, share, and run containers easily on Mac and Windows as you do on Linux. Docker handles the complex setup and allows you to focus on writing the code. To purchase a Docker Desktop license, kindly head over to this licensing page. Kindly refer to this guide "how to install and uninstall Docker Desktop on Windows 10 and Windows Server".

Supported Platforms

Docker Engine is available on a variety of platforms, Linux, macOS, and Windows 10 through Docker Desktop, and as a static binary installation. In addition, Docker can be installed via binaries and this is currently not recommended in production, except in testing environments only. This is because they are not updated automatically with security updates. You’ll need to install manual updates whenever there is a new release of Docker. They will also not include all functionalities provided by the dynamic packages such as buildx, docker scan, and docker-compose.

This article describes how to install and upgrade the Docker engine from Binaries on Windows Server.

Release channels

Docker Engine has three types of update channels, stable, test, and nightly:

  • The Stable channel gives you latest releases for general availability.
  • The Test channel gives pre-releases that are ready for testing before general availability (GA).
  • The Nightly channel gives you latest builds of work in progress for the next major release.

If you are running Windows 10 or 11, it is recommended that you install Docker Desktop instead. Therefore, it is recommended to install Docker Desktop instead for Windows and Mac. This is a little bit different for Linux. You may want to see these related guides: What is Windows Subsystem for Linux (WSL), how to install WSL on Windows Server via Server Manager and PowerShell, and how to install WSL on Windows 10.

Ensure the prerequisites are met, else Docker will never be able to start. Containers are a technology for packaging and running Windows and Linux applications across diverse environments on-premises and in the cloud. Containers provide a lightweight, isolated environment that makes apps easier to develop, deploy, and manage. Kindly refer to this guide "how to install and uninstall Docker Desktop on Windows 10 and Windows Server".
Check Containers to intsall on windows server
Check Containers to intsall on windows server
Click on Install to proceed
Click on Install to proceed

Method 1: Install server and client binaries

Download the static binary archive. Go to https://download.docker.com/win/static/stable/x86_64 and select the latest version from the list. Next, run the following PowerShell commands to install and extract the archive to your program file

Select the latset version of Binaries
 PS C:\> Expand-Archive /path/to/<FILE>.zip -DestinationPath $Env:ProgramFiles
2Capture
2Capture
1Capture
1Capture

Note: The Expand-Archive cmdlet extracts files from a specified zipped archive file to a specified destination folder. However, an archive file allows multiple files to be packaged and optionally compressed, into a single zipped file for easier distribution and storage. Therefore, we will find the following files in the destination specified as shown below.

Screenshot-2021-11-01-at-17.22.58

Register the service and Start the Docker Engine: The Docker daemon now supports an option to register it as a service as well. Therefore, The commands below will help to

PS C:\> $Env:ProgramFiles\Docker\dockerd --register-service
PS C:\> Start-Service docker

Perform a Test Image

This command downloads a test image and runs it in a container. When the container runs, it prints a message and exits.

PS C:\> $Env:ProgramFiles\Docker\docker run hello-world:nanoserver

Method 2 – Create a new Docker folder and download the docker daemon

The commands below will create a new Docker folder in Program Files and download the docker daemon and client binaries in this directory. The last command will add the directory in the Path environment variable.

Screenshot-2021-11-01-at-20.28.18
New-Item -Type Directory -Path 'C:\Program Files\docker\'
Invoke-WebRequest https://aka.ms/tp5/b/dockerd -OutFile $env:ProgramFiles\docker\dockerd.exe 
Invoke-WebRequest https://aka.ms/tp5/b/docker -OutFile $env:ProgramFiles\docker\docker.exe
[Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\Program Files\Docker", [EnvironmentVariableTarget]::Machine)

Next, we will have to register The Docker daemon now supports an option to register it as a service as well. Hence, kindly use the same command discussed in Method 1 to register and start the Docker Engine.

Upgrade static binaries

To upgrade your manual installation of Docker Engine, first, stop any dockerd or dockerd.exe processes running locally, then follow the regular installation steps to install the new version on top of the existing version.

I hope you found this blog post on How to install and upgrade Docker Engine from binaries helpful. Thus, if you have any questions, please let me know in the comment session.

Rate this post

Thank you for reading this post. Kindly share it with others.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Pocket (Opens in new window) Pocket
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
  • Share on Threads (Opens in new window) Threads
  • Share on Nextdoor (Opens in new window) Nextdoor
Containers Tags:docker, docker cli, Windows Server 2016

Post navigation

Previous Post: How to Check if MBAM Agent is installed on Windows PC
Next Post: How to upgrade macOS Big Sur to macOS Monterey

Related Posts

  • How to stop remove and manage docker container
    Stopping, Removing and Naming Docker Container Containers
  • portainer feature
    How to Install Docker Portainer on Linux Containers
  • Docker OSTypelinux
    The executor requires OSType=windows, but Docker Engine supports only OSType=linux Containers
  • Docker internal external
    Running Docker commands returns Docker is not recognized as an internal or external command Containers
  • Slide2
    How to Setup Jenkins Pipelines Environment for Docker Container Deployment Containers
  • Dockerxx1
    How to install and uninstall Docker Desktop on Windows 10 and Windows Server Containers

More Related Articles

How to stop remove and manage docker container Stopping, Removing and Naming Docker Container Containers
portainer feature How to Install Docker Portainer on Linux Containers
Docker OSTypelinux The executor requires OSType=windows, but Docker Engine supports only OSType=linux Containers
Docker internal external Running Docker commands returns Docker is not recognized as an internal or external command Containers
Slide2 How to Setup Jenkins Pipelines Environment for Docker Container Deployment Containers
Dockerxx1 How to install and uninstall Docker Desktop on Windows 10 and Windows Server Containers

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • HyperV 1
    An error occurred while attempting to connect to the server: Check if the Virtual Machine Management service is running or you are not authorized to connect to this server Virtualization
  • update Docker desktop
    How to manually update Docker desktop Containers
  • VBAWS comprehensive guide
    Deep Dive into Protecting AWS EC2, RDS Instances and VPC AWS/Azure/OpenShift
  • image 77
    How to use the DigiCert certificate utility for Windows to create a CSR Windows
  • Screenshot 2020 05 13 at 22.49.32
    Fix for a boot image was not found for HyperV Virtual Machine Virtualization
  • Prevent the saving of RDP Credentials
    Prevent users from saving RDP Credentials on Windows 11 Windows
  • admin6 1
    How to run Apps as an administrator on Windows Windows
  • windows 10 technical preview windows 10 logo microsoft 97543 1920x1080
    Windows Editions: Various Operating Systems available for Windows Windows

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,834 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

Active Directory AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.