Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

dockurr-windows

БесплатноБез исполняемых скриптовНе проверен

Runs a real Windows desktop or server inside a Docker container on a Linux host with KVM, using a QEMU virtual machine that installs itself and is viewed in a…

TerminalSkillsот TerminalSkills★ 221 звезда на GitHub

Об этом скилле

dockurr/windows — Windows in a Docker container

Overview

The dockurr/windows image (source repository dockur/windows, image name with two r's on Docker Hub) starts a QEMU/KVM virtual machine inside a container, downloads the Windows edition you ask for, installs it without prompts, and then serves the desktop through a web viewer on port 8006 and Remote Desktop on port 3389. State lives in a bind-mounted /storage folder, so deleting that folder gives you a fresh machine and keeping it keeps the installed system.

It is a virtual machine, not a Windows-compatibility layer: it needs hardware virtualization (/dev/kvm) on the host. It suits disposable test machines, running a Windows-only tool from a Linux box, or giving CI a Windows target. It does not give you containerised Windows processes or GPU gaming.

This skill is documentation-driven: configuration comes from the project README and docs/environment.md. The first start downloads several GB from Microsoft, so plan for time and bandwidth.

Instructions

Check the host first

KVM is mandatory. Verify before pulling anything:

ls -l /dev/kvm
sudo apt install cpu-checker && sudo kvm-ok     # expect: KVM acceleration can be used

If /dev/kvm is missing: enable Intel VT-x / AMD-V in BIOS or UEFI, and on a VPS enable nested virtualization (many providers do not offer it). Docker Desktop on Linux, macOS and Windows 10 gives containers no KVM and is not supported; Windows 11 with Docker Desktop or Podman needs nested virtualization turned on.

Minimal compose file (loopback only)

Create a folder for the machine and write compose.yml. Every published port is bound to 127.0.0.1 so the VM is not reachable from the network:

services:
  windows:
    image: dockurr/windows:6.06
    container_name: windows
    environment:
      VERSION: "11"
      RAM_SIZE: "8G"
      CPU_CORES: "4"
      DISK_SIZE: "64G"
      USERNAME: "tester"
      PASSWORD: "${WIN_PASSWORD}"
    devices:
      - /dev/kvm
      - /dev/net/tun
    cap_add:
      - NET_ADMIN
    ports:
      - "127.0.0.1:8006:8006"
      - "127.0.0.1:3389:3389/tcp"
      - "127.0.0.1:3389:3389/udp"
    volumes:
      - ./windows:/storage
      - ./shared:/shared
    restart: unless-stopped
    stop_grace_period: 2m

Pin the tag (6.06 was the latest release tag on Docker Hub when this was written; check https://hub.docker.com/r/dockurr/windows/tags). The project's own example uses dockurr/windows without a tag, which follows latest.

Set the password from the environment and start:

export WIN_PASSWORD="$(openssl rand -hex 12)"      # keep it, you need it for RDP
docker compose up -d
docker compose logs -f windows                     # progress of download and install

Open http://127.0.0.1:8006 and watch the installer. When the desktop appears the machine is ready. Without USERNAME and PASSWORD the account is Docker with password admin, so always set both.

One-off docker run

For a throwaway session (taken from the README, with the port bound to loopback):

docker run -it --rm --name windows -e "VERSION=11" -p 127.0.0.1:8006:8006 \
  --device=/dev/kvm --device=/dev/net/tun --cap-add NET_ADMIN \
  -v "${PWD:-.}/windows:/storage" --stop-timeout 120 docker.io/dockurr/windows:6.06

Choose the Windows version

Set VERSION to one of the documented values; the README lists approximate download sizes:

Value Edition Value Edition
11, 11l, 11e Windows 11 Pro, LTSC, Enterprise 2025, 2022, 2019 Windows Server
10, 10l, 10e Windows 10 Pro, LTSC, Enterprise 2016, 2012, 2008, 2003 older Windows Server
8e, 7u, vu, xp 8.1 Ent., 7 Ultimate, Vista, XP tiny11, core11, tiny10 trimmed community builds

LANGUAGE: "French" selects another display language; REGION and KEYBOARD (for example en-US) override locale and keyboard. For a custom ISO, set VERSION to its URL, or bind a local file with - ./win.iso:/custom.iso (then VERSION is ignored). ARM64 hosts use the separate dockur/windows-arm project.

Resources and disks

  • RAM_SIZE (default 4G) and CPU_CORES (default 2) accept numbers, half or max.
  • DISK_SIZE sets the primary disk (default 64G). Raising it later grows the disk, but you must extend the partition inside Windows.
  • Extra disks: DISK2_SIZE: "32G" plus a ./disk2:/storage2 volume.
  • AUDIO: "Y" streams sound to the web viewer (enable it under Settings, Advanced in the viewer).

Connect with RDP

The web viewer is meant for installation; RDP is faster and supports clipboard sharing. With FreeRDP on Linux:

xfreerdp3 /v:127.0.0.1:3389 /u:tester /p:"$WIN_PASSWORD" /cert:ignore /size:1600x900

/cert:ignore is acceptable only because the target is your own loopback VM. On older FreeRDP packages the binary is xfreerdp. Any Microsoft Remote Desktop client works the same way

Полный SKILL.md на GitHub

Установить dockurr-windows в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

_scores.json

FAQ

Что делает скилл dockurr-windows?

Runs a real Windows desktop or server inside a Docker container on a Linux host with KVM, using a QEMU virtual machine that installs itself and is viewed in a browser or over RDP. Use when someone asks to "run Windows in Docker", "spin up a disposable Windows 11 test machine", "test a Windows installer from Linux", "get a Windows VM with RDP", "dockur windows", or "unattended Windows install with a compose file". Covers image setup, VERSION values, resources, shared folders, first-boot scripts, RDP access and licensing.

Как установить скилл dockurr-windows?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл dockurr-windows запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить dockurr-windows с