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 ...
Discussions

GitLab Runner on Windows with Windows containers: docker vs docker-windows executor
For some time I’ve been using GitLab Runner, Windows containers, and the plain docker executor in my runner’s configuration - everything worked exactly as it should! Clarification on the benefits of using docker-windows would be welcome. I’m pondering whether to open... More on forum.gitlab.com
🌐 forum.gitlab.com
0
2
October 17, 2024
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
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 More on forums.docker.com
🌐 forums.docker.com
0
0
August 18, 2022
docker - gitlab ci cannot build windows container - Stack Overflow
I am trying to build windows container using https://gitlab.com, but I didnot find if this is supported or not. ... image: docker services: - docker:dind variables: DOCKER_HOST: tcp://docker:2375 DOCKER_DRIVER: overlay2 before_script: - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY ... More on stackoverflow.com
🌐 stackoverflow.com
Executors on Windows: Docker vs Docker-Windows
Reading the documentation for setting up the gitlab runner on Windows ( Install GitLab Runner on Windows | GitLab ) and the registration-on-windows documentation ( Registering runners | GitLab ), but here it says: For most use cases, enter docker. My questions then are: Does the default ... More on forum.gitlab.com
🌐 forum.gitlab.com
0
0
April 29, 2022
🌐
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.
🌐
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.
🌐
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
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
🌐
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.
🌐
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.
🌐
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 ...
🌐
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.
🌐
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).
🌐
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.
🌐
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
🌐
GitLab
forum.gitlab.com › how to use gitlab › self-managed
Executors on Windows: Docker vs Docker-Windows - Self-managed - GitLab Forum
April 29, 2022 - Reading the documentation for setting up the gitlab runner on Windows ( Install GitLab Runner on Windows | GitLab ) and the registration-on-windows documentation ( Registering runners | GitLab ), but here it says: For most use cases, enter docker.