Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

Have you run into a roadblock when you tried to install the Community Edition (CE) of Docker on a Windows Server VM? This quick step-by-step guide resolved that problem for you!

Docker Desktop is available for installation on Windows 10 or Windows 11. However, you cannot install the Docker Desktop on a Windows Server. This is the problem that this article solves.

Deploy Docker Community Edition on a Windows Server Virtual Machine

  1. Create a folder called “Docker” on drive C:\ (or any other drive on the server).
  2. Then, search “powershell”, right-click “Windows PowerShell” and select “Run as Administrator.
How to Install Docker CE on a Windows Server VM
  1. When the PowerShell console opens, run these three commands.
Your VM will restart during the installation!
cd C:\Docker

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/Windows-Containers/Main/helpful_tools/Install-DockerCE/install-docker-ce.ps1" -o install-docker-ce.ps1

.\install-docker-ce.ps1
The first command changes the directory to the “Docker” folder you created in step 1. Meanwhile, the second command downloads the Microsoft script that installs Docker CE on a Windows Server VM while the third command runs the script.
  1. When the VM restarts, the Docker installation will continue. After installation, it displays the information shown in the second screenshot below.
How to deploy Docker CE on a Windows Server VM
  1. You can run docker commands on the same PowerShell console, like “docker images.” However, in some instances, if non-administrators run docker commands, they may receive the “Open \.\pipe\docker_engine: Access Denied” error.

    In the next section, I will discuss the steps that fix this error.
Open \.\pipe\docker_engine: Access Denied
Installing Docker with the above steps does not install some Docker components such as buildx and docker-compose. The final section of this article documents the steps to Install Docker Compose standalone (not part of the CE edition installed above) on a Windows Server VM.

How to Fix the “Open \.\pipe\docker_engine: Access Denied” Docker Error

As explained in this article – Using the #Docker Named Pipe as a Non-Admin for #WindowsContainers – Docker on Windows requires running CMD or PowerShell as administrator to run Docker commands.

Apparently, this is a known issue and it has to do with how Docker for Windows configures permission in the named pipe, “\.\pipe\docker_engine.”

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Follow the steps below to fix the “Open .\pipe\docker_engine: Access Denied” Docker error on Windows.

Popular on Amazon
Sale
Sunxeke 45 Pack M6 x 16mm Rack Mount Cage Nuts, Screws and Washers for Server Shelf Cabinets, Server Rack, Computer Case DIY & Maintenance, Square Insert Nuts, Rack Mount Server Accessories
  • Complete M6 rack screws kit: This M6 rack screws hardware kit comes with 45 square rack cage nuts, 45 rack mount screws and 45 black washers. All nuts and bolts are neatly stored in a sturdy compartmentalized plastic storage box, letting you quickly find hardware during server cabinet assembly, upgrade or maintenance. Ideal server rack accessories for your rack installation projects
  • Durable carbon steel with black nickel plating: These M6 screws, rack screws and cage nuts are built from heavy-duty carbon steel with premium black nickel plating. The coating offers powerful resistance to rust, corrosion, oxidation and abrasion, prevents fingerprints and discoloration, and delivers dependable performance in high and low temperature environments for extended service life
  • Precise sharp threads for secure installation: Our server rack screws and rack mount hardware feature deep, clean-cut sharp threads and smooth burr-free surfaces. These m6 screw threads install smoothly without stripping, creating firm fastening to stop loose connections on rack and cabinet equipment during long-term use
  • Universal compatibility for square-hole racks: Our M6 x 16mm cabinet screws fit standard 10mm square-hole server racks and cabinets seamlessly. Great for mounting servers, switches, routers, A/V devices and TV mounts. Perfect bolts and nuts for data centers, server rooms, IT closets and commercial workspaces
  • Tight tolerance manufacturing: These M6 rack screws are precision made to strict metric standards with average error below 0.01mm. The tight-tolerance thread design creates a snug fit and even force distribution, resisting slipping and deformation to keep rack-mounted hardware securely fixed. Works great with rack studs for square hole cabinet setups
  1. Open the daemon.json file located in the path, C:\ProgramData\docker\config.
You need to open this file as administrator. One easy way to do this is using Notepad++. If you do not have Notepad++, copy the file to another location, and update it with the steps outlined below. Then, replace the file in C:\ProgramData\docker\config.
Before updating the daemon.json, make a copy!
  1. Replace the content of daemon.json with the following code and save the file:
If you copied daemon.json to a different location, remember to replace the copy in C:\ProgramData\docker\config with your updated copy.
{
    "hosts": [
        "tcp://127.0.0.1:2376",
        "npipe://"
    ]
}
  1. Once you’ve updated the daemon.json file, restart the “Docker Engine” service by running the command.
Get-Service "Docker Engine" | Restart-Service
  1. The final step is to create an environment variable called DOCKER_HOST. This variable defines the location of the docker engine as configured in the daemon.json file.

    To create a DOCKER_HOST environment variable:
    a) Search env and select “Edit the system environment variables.”
How to Fix the "Open \.\pipe\docker_engine: Access Denied" Docker Error

b) Then, on the “Advanced” tab of System Properties, click “Environment Variables”

c) Finally, follow the numbering in the screenshots below to create the

c) Finally, follow the numbering in the screenshots below to create the DOCKER_HOST environment variable.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Also popular on Amazon
M6 Cage Nuts, Screws and Washers [Size: M6 x 16mm 50 Pack] Rack Mount Screws Hardware for use with Network and Server Rack Accessories, Routers, Cabinets and Enclosures.
  • Pro Grade – Here is our new Black M6 Rack Screws and Cage Nuts Set [50 x Server Rack Screws, 50 x Cage Rack Nuts, 50 x Washers] used for mounting server racks, enclosures, cabinets, and more.
  • Strong & Durable – Our Rack Cage Nuts & Relay Rack Screws for server rack have a high-grade carbon steel construction to prevent stripping. The M6 Cage Nuts and Bolts have also been coated in zinc chromate plating for resistance from corrosion.
  • Wide application – Our rack screws & nuts are universally compatible with all square hole racks & cabinets. This makes the rack cage nuts and screws suitable for mounting all server rack hardware, including rack server cabinets, server shelves, A/V device enclosures, and other server mounting procedures.
  • Easy to install – Our server rack screws and clip nuts have a Phillip’s truss-head with self-guiding pilot points to allow you to install in no time. The rackmount screws and nuts thread are extra sharp, clean & accurate, offering a smooth & satisfying installation process.
  • Essential Bundle – Our Cage nuts & screws m6 set includes all the essential parts for mounting your server equipment. Pack not only includes screws & cage nuts; we have also thrown in additional heavy-duty washers to reduce any marks or scratches when installed. We truly believe our server rack nuts and bolts set is the best in the marketplace and we stand by that. If our cage nut set starts driving you nuts, we’ll FULLY REFUND YOU. So, click “Add to Cart” now and buy with confidence.
How to Install Docker CE on a Windows Server VM - create the DOCKER_HOST environment variable.

Install Docker Compose Standalone on a Windows Server VM

Earlier, I hinted that installing the Docker CE on a Windows Server VM does not include some Docker components like “docker-compose.”

We’ll fix that problem by installing Docker Compose Standalone with the steps below:

  1. Open PowerShell as administrator by searching “powershell” right-clicking “Windows PowerShell” and selecting “Run as administrator.”
How to Install Docker CE on a Windows Server VM - Install Docker Compose Standalone  on a Windows Server VM
  1. Once PowerShell opens, enable TLS1.2 – a GitHub requirement.
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
  1. After that, create the Docker folder in Program Files with this PowerShell command:
New-Item -Name Docker -Path $Env:ProgramFiles -ItemType Directory
  1. Then, run this command to download the latest version of Docker Compose.
 Start-BitsTransfer -Source "https://github.com/docker/compose/releases/download/v2.24.5/docker-compose-windows-x86_64.exe" -Destination $Env:ProgramFiles\Docker\docker-compose.exe
  1. Finally, to make the docker-compose.exe command available, add it to the PATH environment variable. Use steps 4 a) and b) in the previous section to open Environment Variables.

Then, on the “Systems variable” section, highlight the “Path” environment variables and click Edit.

Also popular on Amazon
50 PACK M6 x 16mm Rack Mount Cage Nuts, Screws and Washers for Rack Mount Server Cabinet, Rack Mount Server Shelves, Routers, Rack Mount Screws and Square Insert Nuts, Self-Locking Cable Ties for Free
  • 【Wide Application】 XOOL M6 Rack Mount Screw Kit is great for mounting your rack server cabinets, server shelves, A/V device enclosures, and more. These M6 cage nuts and screws are universally compatible with all square-hole racks and cabinets. Easily mount your equipment using this convenient kit, which comes with everything you'll need to get the job done. These self-locking cable ties are perfect for computer, appliance and electronic cord organization, wire management and storage.
  • 【Superb Quality】 The cage nuts and screws is made of high quality Carbon Steel. The Carbon Steel material features strength and offers good corrosion resistance in bad environment like high temperature, cold weather, and high humidity areas. They have superior rust resistance and the excellent of oxidation resistance, which can ensure long time using and prolong screws and nuts lifespan. Wear resistant feature make the cage nuts and screws more durable and solid.
  • 【Standard Metric】 Our M6 screws and cage nuts accord with standardized metric system. And the average error is less than 0.01mm. The screw thread is very sharp, clean and accurate without burr. The compact and force uniform screw thread is not easy to out of shape and slid in the process of rolling and installation. The deep and clear flat cross head can make your working more easily and improve your work efficiency.
  • 【Safety and Eco-Friendly】 XOOL M6 screws and cage nuts use high quality Carbon Steel raw material, which is environmental protection and non-poisonous. In the process of using, there are no toxic substances releasing, which will ensure your safety. After heat treating, carbon steel has good mechanical properties of ductility, hardness, yield strength, or impact resistance.
  • 【Thoughtful Design】 We add self-locking Nylon cable ties on our package. The CABLE TIES is good for home, office, garage, workshop and more. And the screw is very easy to insert with hand.
Add $Env:ProgramFiles\Docker\docker-compose.exe to the PATH env variable

Finally, follow the numbering in the screenshot below to add “%ProgramFiles%\Docker\” to the PATH environment variable.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Now you can run the docker-compose.exe command!

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Frequently Asked Questions

1. Is it possible to install Docker on a Windows Server?

Yes, you can install Docker on a Windows Server by downloading and running the Microsoft PowerShell script built for this purpose, install-docker-ce.ps1.

2. How to install Docker Compose on Windows Server?

To install Docker-Compose on a Windows Server, follow the steps in this Official Document, Install Compose standalone.

Also popular on Amazon
RVIEVJP 50 Pack M6 x 16mm Rack Mount Cage Nuts, Screws & Washers | 50 M6 x 16mm cage nuts, screws & washers; fits square-hole server, network & equipment racks; free cable ties.
  • 【UNIVERSAL 19-INCH RACK COMPATIBILITY】No more ill-fitting hardware! Our M6 x 16mm fasteners fit all standard 19-inch SERVER RACKS, network cabinets and data centers—seamless lock-in, zero size guesswork, no return risks for mismatched parts. Perfect for your rack mount setup
  • 【DURABLE BLACK ZINC-PLATED BUILD】Fight mild rust and stripping! Our RACK MOUNT HARDWARE features thick BLACK ZINC PLATING on carbon steel—resists wear, bending and indoor/semi-outdoor corrosion for 2+ years. Sturdier than generic flimsy fasteners
  • 【50-PACK ALL-IN-ONE CAGE NUTS KIT】No mid-install part runs! Our complete 50-pack of CAGE NUTS includes matching M6 screws, washers + FREE self-locking cable ties—exact parts for rack/cabinet builds, no extra hardware store trips
  • 【TOOL-FREE SNAP-ON EASY INSTALL】Skip complex tools and slow builds! Our RACK MOUNT SCREWS pair with snap-on cage nuts (hand-installed)—twist in with a basic Phillips driver, no stripping. Finish your rack setup in 10-15 mins, even for first-timers
  • 【MULTI-USE RACK ACCESSORY HARDWARE】Max out your setup versatility! This hardware works for all NETWORK AND SERVER RACK ACCESSORIES—small business racks, office cabinets, home labs, audio racks. Washers prevent scratches, cable ties tidy wiring
3. What is Docker CE?

Docker CE stands for Docker Community Edition. It is the free Docker version – maintained by the Docker community – that you can deploy to Windows Server.

4. How do I know if Docker CE is installed?

To check if the Docker Community Edition is available on a Windows server, open a CMD or PowerShell and run “docker –version”. If Docker is available on the server, the command should display the Docker version.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
5. Is Docker CE the same as Docker Desktop?

No, there is a difference between Docker CE (Community Edition) and Docker Desktop. Firstly, Docker Desktop can only be installed on Windows 10 or Windows 11 while Docker CE runs on Windows Server.

Also, Docker CE does not install some Docker components like Docker Compose while the Desktop Edition does.

Also popular on Amazon
Leadrise 50-Pack M6 x 16mm Computer Rack Mount Cage Screws, Nuts & Washers for Server Cabinet - Black
  • Accurate & Durable Design:Our M6 screws and cage nuts are manufactured to strict metric standards with an average tolerance of less than 0.01 mm for accurate fit and reliable performance. The threads are sharp, clean, and burr-free, ensuring smooth installation. The compact, evenly distributed thread design resists deformation and slipping during fastening. A deep, well-defined Phillips head allows for easier operation and improved work efficiency.
  • Heavy-Duty & Long-Lasting:Constructed from premium carbon steel with a protective black nickel coating to resist rust and oxidation. Designed to withstand high temperatures, cold weather, and other harsh conditions for reliable, long-term performance.
  • Clean & Professional Look:Finished in sleek black nickel to match most rack systems, delivering a clean, organized, and professional appearance inside your cabinet.
  • Wide Application:Perfect for server cabinets, rack shelves, and A/V enclosures. Compatible with all standard square-hole racks, this M6 cage nut and screw kit provides secure installation hardware along with durable self-locking cable ties for clean and organized wire management.
  • 50-Pack Complete Set – Comes with 50 cage nuts, 50 mounting screws, and 50 black washers. Packaged in a sturdy small box to keep everything organized and easy to store.

Conclusion

Trying to navigate the world of Docker on Windows can be challenging. With this article, we hope we’ve reduced that problem by one!

If we did and you like to share your thoughts or even ask additional questions, use the Comment form towards the end of this page.

Alternatively, you can respond to the “Was this page helpful?” question below.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Thank you for reading!

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.