Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Version Control System » Preparation failed: The docker client must be run with elevated privileges
  • powershell
    How to perform PowerShell syntax check using PSScriptAnalyzer Scripts
  • Windows10 11
    Block Upgrade to Windows 11 via Group Policy or Registry Windows
  • deactivateandreactivate
    How to deactivate and reactivate a Slack user JIRA|Confluence|Apps
  • Screenshot 2020 08 14 at 23.03.54
    How to disable Taskbar Web Search in Windows 10 via GPO and Windows Registry Windows
  • BitLocker
    Hide Default BitLocker Drive Encryption item in Windows Windows Server
  • dfefeq
    Error 740: Elevated permissions are required to run DISM Windows Server
  • goland
    How to install Golang on a Linux System Linux
  • Extend C drive with additional Software
    Fix unable to Extend Volume on Windows protected by BitLocker Windows

Preparation failed: The docker client must be run with elevated privileges

Posted on 17/10/202118/12/2025 Christian By Christian No Comments on Preparation failed: The docker client must be run with elevated privileges
Error during connect in the default daemon configuration on Windows

In this article, we shall discuss “Preparation failed: Error during connect in the default daemon configuration on Windows – the docker client must be run with elevated privileges”. Docker is an open platform for developing, shipping and running applications. It provides a simple and powerful developer experience, workflows, and collaboration for creating applications. Please, see how to create a static pod in Kubernetes, and how to install, register and start GitLab Runner on Windows.

Docker enables you to separate your applications from your infrastructure so you can deliver software quickly. With Docker, you can manage your infrastructure in the same ways you manage your applications.

By taking advantage of Docker’s methodologies for shipping, testing, and deploying code quickly, you can significantly reduce the delay between writing code and running it in production. You can download and install Docker on multiple platforms.

Executing the Windows docker version command can also prompt this error. Before using Docker Desktop, you may want to see the Docker Subscription Service Agreement. Here is a link to it.

Reason for the error “Preparation failed: The docker client must be run with elevated privileges”

The executor error happened due to a change in the file’s executor. The GitLab-Runner server didn’t restart to apply changes. Kindly refer to some related guides: How to install Git on macOS, clone a repository, and install software from GitHub on Windows. Panic: If you failed to register the GitLab-runner, you may be having network issues.

Running with gitlab-runner 14.3.1 (xxxxxx)
  on Windows runner with docker-windows executor xxxxxxxxx
Preparing the "docker" executor
00:07
ERROR: Failed to remove network for build
ERROR: Preparation failed: error during connect: In the default daemon configuration on Windows, the docker client must be run with elevated privileges to connect.: Get http://xxxxx/info: open //./pipe/docker_engine: The system cannot find the file specified. 
Will be retried in 3s ...

Refer to the following guide on how to install and uninstall Docker Desktop on Windows 10 and Windows Server, 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,

Solution: Restart the Docker service

Ensure all the prerequisites to have Docker Desktop installed and running in your environment are fulfilled. This error meant the docker daemon is unreachable. Docker daemon fails to start up on Windows or stops for some reason and especially when you try to run any commands.

To fix such types of issues restarting the service will resolve the error. This will open the Services Windows GUI. Please restart the Docker Desktop Service. This can be done by launching the services.msc  from the Run dialog window or Windows Search.

Right-click on Docker Desktop and select the restart option. Please make sure the services are in the “Running” state.

Windows docker client privileges

Docker Platform Installation Deployment Integration Guide: Restart the Docker Service Via the command line

The Docker Desktop services can be stopped and restarted with the following commands. Regardless of the step you use, you will achieve the same result.

net stop com.docker.service
net start com.docker.service

Here are some similar errors this method can resolve as well: “Docker image OS”windows” cannot be used on this platform: No matching manifest for linux/amd64 in the manifest list entries from Microsoft Docker Registry“, and “The executor requires OSType=windows, but Docker Engine supports only OSType=linux“.

Restart docker service using GUI

Using Docker Desktop GUI, click on the troubleshooting icon as shown below and click on Restart.

Elevated privileges for docker

Click the hidden icon, right-click on Docker, and restart it by following the Docker Platform Installation Deployment Integration Guide steps.

Connection error in docker daemon

After following the steps outlined in the Docker Platform Installation Deployment Integration Guide. The error was resolved by restarting the Docker Desktop and the GitLab-Runner service using any of the mentioned methods.

If the steps above do not resolve your issues (errors), you may have to Switch Daemon configuration“Switch to Windows Container” in your host OS is Windows.

Docker daemon configuration error
PS C:\Program Files\Docker\Docker> ./DockerCli.exe -SwitchDaemon

You can perform this action using the command prompt below or directly from the taskbar. To switch to Windows, right-click on the white whale as detailed in the Docker Platform Installation Deployment Integration Guide.

Screenshot-2021-10-16-at-22.56.57

I trust you found the article on “Preparation failed: Error during connect in the default daemon configuration on Windows – the docker client must be run with elevated privileges” very useful. Kindly share any queries in the comments section.

5/5 - (1 vote)

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

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
Version Control System Tags:docker, Docker Desktop, GitLab, GitLab-Runner, Windows 10, Windows 11

Post navigation

Previous Post: Failed to pull image with the policy “always” error from the daemon
Next Post: How To Configure VM Update Management on Azure Stack Hub

Related Posts

  • Screenshot 2022 03 20 at 20.37.16
    Setup HTTPS users using Git credentials and Pushing Code to AWS CodeCommit AWS/Azure/OpenShift
  • DevOps
    Create an App Service Plan with Continuous Deployment to deploy a .NET Application from GitHub AWS/Azure/OpenShift
  • uninstall gtla runner
    How to uninstall GitLab Runner from your Windows device Version Control System
  • Git not Recognized Image banner
    Fix Git is not recognised as an internal or external command Version Control System
  • ArchiveUnarchiveDelete134
    Manage a GitLab Project: How to archive or unarchive and delete GitLab projects Version Control System
  • Upstream branch in Git 1
    Set up and use an upstream branch in Git Version Control System

More Related Articles

Screenshot 2022 03 20 at 20.37.16 Setup HTTPS users using Git credentials and Pushing Code to AWS CodeCommit AWS/Azure/OpenShift
DevOps Create an App Service Plan with Continuous Deployment to deploy a .NET Application from GitHub AWS/Azure/OpenShift
uninstall gtla runner How to uninstall GitLab Runner from your Windows device Version Control System
Git not Recognized Image banner Fix Git is not recognised as an internal or external command Version Control System
ArchiveUnarchiveDelete134 Manage a GitLab Project: How to archive or unarchive and delete GitLab projects Version Control System
Upstream branch in Git 1 Set up and use an upstream branch in Git Version Control System

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
 
  • powershell
    How to perform PowerShell syntax check using PSScriptAnalyzer Scripts
  • Windows10 11
    Block Upgrade to Windows 11 via Group Policy or Registry Windows
  • deactivateandreactivate
    How to deactivate and reactivate a Slack user JIRA|Confluence|Apps
  • Screenshot 2020 08 14 at 23.03.54
    How to disable Taskbar Web Search in Windows 10 via GPO and Windows Registry Windows
  • BitLocker
    Hide Default BitLocker Drive Encryption item in Windows Windows Server
  • dfefeq
    Error 740: Elevated permissions are required to run DISM Windows Server
  • goland
    How to install Golang on a Linux System Linux
  • Extend C drive with additional Software
    Fix unable to Extend Volume on Windows protected by BitLocker 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,841 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

AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.