Skip to content

Setting Up Docker on a Windows Server – Launch and Manage Containers on Your Infrastructure

Discover how to efficiently deploy and manage applications with Docker containers – for seamless scaling and updates → Learn more now

12 November 20262 min read46 Views0 helpful

Introduction

Docker is an open platform for developing, delivering, and running applications in containers. A container packages an application with all its dependencies into a standardized unit that runs reliably across different environments.

This approach eliminates issues caused by differences between development, testing, and production systems. With Docker, you can deploy applications quickly, scale efficiently, and update without downtime.

Want to host this service yourself? We guide you step-by-step through the setup and configuration and show you everything you need to consider.

Requirements

Before installing Docker, make sure your hosting environment meets the following requirements to ensure smooth installation and optimal performance.

HardwareMinimumZAP Hosting Recommendation
CPU1 vCPU core4 vCPU cores
RAM4 GB4 GB
Disk Space10 GB25 GB

Installation

To set up Docker on a Windows Server, download and run the PowerShell script install-docker-ce.ps1. It enables the OS features required for containers and installs the Docker runtime. Open PowerShell as an administrator and run the following command:

powershell
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 script activates container-related Windows features, installs the Docker Engine and Docker CLI, and registers the Docker service for automatic startup.

The system will restart during installation and should continue automatically afterward. After rebooting, log in and run the command again if the script prompts you to do so, allowing the service to complete initialization. Once the script finishes, the output will look like this:

Code
Installing Docker... C:\Users\Administrator\DockerDownloads\docker-28.3.3\docker\docker.exe
Installing Docker daemon... C:\Users\Administrator\DockerDownloads\docker-28.3.3\docker\dockerd.exe
Configuring the docker service...
Waiting for Docker daemon...
Successfully connected to Docker Daemon.
The following images are present on this machine:
REPOSITORY   TAG       IMAGE ID   CREATED   SIZE

Script complete!

Configuration

Starting and Stopping Docker

Docker runs as a service on Windows. It starts automatically after installation. To control it manually:

Code
Start-Service docker    # Start the Docker service
Stop-Service docker     # Stop the Docker service
Restart-Service docker  # Restart the Docker service

Starting and Stopping Containers

Start a container with docker run. Example: IIS web server mapping container port 80 to host port 8080:

Code
docker run -d --name web -p 8080:80 mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2022

Checking Container Status

Check container status with:

Code
docker ps        # Running containers
docker ps -a     # All containers, including stopped ones
docker inspect web   # Detailed info
docker logs web      # Container logs

Resources and Status

Code
docker stats            # Live CPU/RAM/IO usage

Conclusion and Further Resources

Congratulations! You have successfully installed and configured Docker on your VPS/Dedicated Server. We also recommend checking out the following resources to assist with server configuration:

Have specific questions not covered here? Our team is available daily for further questions or support – just reach out to us! 🙂

FAQ

Frequently asked questions

Download the PowerShell script install-docker-ce.ps1 and run it as an administrator using: Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/Windows-Containers/Main/helpful_tools/Install-DockerCE/install-docker-ce.ps1" -o install-docker-ce.ps1 followed by .\install-docker-ce.ps1
It enables the OS features needed for containers, installs the Docker Engine and CLI, and registers the Docker service for automatic startup.
Yes, the system restarts during installation and should continue automatically. After reboot, log in and rerun the command if prompted to complete initialization.

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 Users found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP support team knows your product — briefly describe your issue and we'll help you personally.

Zappy knows this guide and answers you right in the chat.