1. You need to install Docker for Windows.

  2. Share drive for Docker (in Docker's settings > shared drives). For example, drive E:

  1. Then, you need to create 3 directories on drive E: (e:\gitlab\config, e:\gitlab\logs, e:\gitlab\data)

  2. From the Command Prompt, run:

    docker run --detach --hostname gitlab.yourdomain.ru 
    --publish 443:443 --publish 80:80 --publish 22:22 --name gitlab 
    --restart always --volume e:\gitlab\config:/etc/gitlab 
    --volume e:\gitlab\logs:/var/log/gitlab 
    --volume e:\gitlab\data:/var/opt/gitlab gitlab/gitlab-ce:latest
    

That's it! You have now successfully run GitLab image.

Answer from mr_squall on Stack Overflow
🌐
GitLab
forum.gitlab.com › gitlab ci/cd
Windows host, gitlab-runner (windows app), Docker container running windows - GitLab CI/CD - GitLab Forum
July 27, 2022 - I am trying to use a Windows host, with the 64-bit gitlab-runner and Docker Desktop for Windows to run a Windows containers. I followed the instructions to Install and configure GitLab Runner on Windows. I believe everything is running as expected PS C:\GitLab-Runner> .\gitlab-runner.exe verify ...
🌐
Gitlab
gitlab-docs-d6a9bb.gitlab.io › contribute › contribute to gitlab runner › add new windows version support for docker executor
Add Docker executor support for a Windows version | GitLab
GitLab supports specific versions of Windows. To add support for a new Windows version for the Docker executor, you must release a helper image with the same Windows version.
🌐
GitLab
docs.gitlab.com › runner › development › add-windows-version
Add Docker executor support for a Windows version | GitLab Docs
GitLab supports specific versions of Windows. To add support for a new Windows version for the Docker executor, you must release a helper image with the same Windows version.
🌐
Medium
itsmegaffoor.medium.com › gitlab-installation-on-windows-using-docker-7c96186a938a
GitLab Installation on Windows using Docker | by Abdul Gaffoor. Noor Basha | Medium
September 4, 2023 - docker run --detach --hostname gitlab.example.com --publish 443:443 --publish 80:80 --publish 22:22 --name gitlab --restart always --volume $GITLAB_HOME/config:/etc/gitlab --volume $GITLAB_HOME/logs:/var/log/gitlab --volume $GITLAB_HOME/data:/var/opt/gitlab --shm-size 256m -e GITLAB_ROOT_PASSWORD=Abdul@123 gitlab/gitlab-ee:latest
🌐
GeeksforGeeks
geeksforgeeks.org › git › how-to-install-gitlab-on-windows
How To Install GitLab on Windows? - GeeksforGeeks
July 24, 2025 - In this article, we will walk you through the steps to install GitLab on Windows using Docker, which provides a manageable and efficient way to run GitLab without needing to configure a full Linux environment.
🌐
GitLab
forum.gitlab.com › gitlab ci/cd
GitLab Runner on Windows with Windows containers: docker vs docker-windows executor - GitLab CI/CD - GitLab Forum
October 17, 2024 - The GitLab Runner documentation is clear that to use Windows containers, you should be using the docker-windows executor, not docker. It does not explain what the difference between these executor types is, nor why there are two.
Find elsewhere
🌐
GitLab
docs.gitlab.com › install › docker › installation
Install GitLab in a Docker container | GitLab Docs
To install GitLab in a Docker container, use Docker Compose, Docker Engine, or Docker Swarm mode. ... You must have a working Docker installation that is not Docker for Windows. Docker for Windows is not officially supported as the images have known compatibility issues with volume permissions ...
🌐
Aixxe
aixxe.net › 2024 › 04 › windows-ci-docker
Windows containers with GitLab CI
April 6, 2024 - Here’s a copy of my Dockerfile, which includes a subset of C++ Build Tools, CMake, Meson, Ninja, PowerShell, and Git. I also included a helper script called VcVars.ps1, which pulls in environment variables you’d get from the Native Tools command prompts into the current instance of PowerShell, as that’s the default shell in GitLab Runner on Windows now.
🌐
Coding With Thomas
codingwiththomas.com › blog › windows-docker-container-in-gitlab-with-conan-packages
Windows Docker Container for MSVC Builds with Conan in Gitlab — Coding With Thomas
May 9, 2024 - Let’s set up a Windows build using Microsoft Visual Studio Compiler and Conan in Gitlab. We’ll use Windows Docker Containers to run our builds with Gitlab Runner. This is a guide to get started with Windows Docker builds with a Gitlab Runner. Ultimately we store all Conan packages directly ...
🌐
TechDirectArchive
techdirectarchive.com › home › version control system › install docker desktop and register gitlab-runner with docker-windows executor
Install Docker Desktop and register GitLab-Runner with Docker-windows executor - TechDirectArchive
May 17, 2023 - The Docker executor when used with GitLab CI, connects to Docker Engine and runs each build in a separate and isolated container using the predefined image that is set up in .gitlab-ci.yml and in accordance in config.toml. That way you can have a simple and reproducible build environment that can also run on your workstation. In the past, I have written on how to install, register and start GitLab Runner on Windows, and how to uninstall GitLab from your Windows device.
🌐
GitLab
docs.gitlab.com › runner
GitLab Runner | GitLab Docs
Works on GNU/Linux, macOS, and Windows (pretty much anywhere you can run Docker).
🌐
Holdmybeersecurity
holdmybeersecurity.com › 2021 › 02 › 19 › devops-tales-install-setup-gitlab-gitlab-runners-on-docker-windows-linux-and-macos
DevOps Tales: Install/Setup Gitlab + Gitlab runners on Docker, Windows, Linux and macOS | HoldMyBeer
February 19, 2021 - One of the deliverables from this blog post is Docker composes for Swarm and non-swarm deployments of Gitlab. Additionally, there are manual instructions on how to setup Gitlab runners on Ubuntu 20.04, Ubuntu 20.04 with Docker, Windows 10, Windows 10 with Docker, and macOS Big Sur.
🌐
GitLab
docs.gitlab.com › runner › executors › docker
Docker executor | GitLab Docs
You can use various Windows base images, including Server Core, Nano Server, Server, and Windows. For example, use the Windows Server Core images with their compatible OS versions: ... GitLab Runner uses Docker to detect what version of Windows Server is running.
🌐
GitHub
github.com › patsissons › docker-gitlab-runner-windows
GitHub - patsissons/docker-gitlab-runner-windows
docker run -d -e REGISTRATION_TOKEN=xxx -e CI_SERVER_URL='http://localhost/ci' -e RUNNER_NAME=gitlab-agent-1 -e RUNNER_TAG_LIST='WINDOWS,DOCKER' patsissons/gitlab-runner-windows
Starred by 9 users
Forked by 4 users
Languages   PowerShell 90.5% | Batchfile 9.5% | PowerShell 90.5% | Batchfile 9.5%
🌐
Medium
medium.com › devops-with-valentine › setup-gitlab-ci-runner-with-docker-executor-on-windows-10-11-c58dafba9191
Setup GitLab CI Runner with Docker Executor on Windows 10/11 | by Valentin Despa | DevOps with Valentine | Medium
May 30, 2022 - Setup GitLab CI Runner with Docker Executor on Windows 10/11 If you are trying to use the GitLab.com shared runners, you may run out of minutes. Or you may have issues verifying your account. So, in …
🌐
Docker Community
forums.docker.com › docker desktop
Using gitlab image on Docker desktop and setup on local host, uploaded some issues to my project, whenever try to access the issue it will go to container id instead of local host, please help - Docker Desktop - Docker Community Forums
August 18, 2022 - Using gitlab image on Docker desktop and setup on local host, uploaded some issues to my project, whenever try to access the issue it will go to container id instead of local host, please help