talira

Windows in Docker (dockur)

Run Windows inside a Docker container, installed hands-free

open sourceMITself-hostablefree

dockur/windows runs Windows as a virtual machine inside a Docker container: it downloads the chosen release and installs it unattended, from Windows 11 and 10 back to XP and Windows Server editions. With KVM acceleration it runs at near-native speed, and you reach the desktop in a browser on port 8006 or over RDP. CPU, memory and disk are configurable, with memory ballooning, USB passthrough, host folder sharing and several networking modes. It doesn't distribute Windows itself: you need a valid Windows licence.

Problems it solves

  • run a Windows VM on a Linux server with Docker Compose
  • test software on Windows from a Linux machine
  • a disposable Windows desktop in a container

Features

  • automatic download and unattended installation
  • modern and legacy Windows releases
  • KVM acceleration
  • web viewer on port 8006 and RDP
  • USB passthrough and shared folders
  • NAT, user-mode, macvlan and macvtap networking

Limitations

  • Needs a valid Windows licence; the project doesn't provide one.1
  • Needs KVM (/dev/kvm) on the host for usable performance.1

Alternatives

The same job

These do what Windows in Docker (dockur) does.

  1. WinBoat Run Windows apps on Linux as native windows, from a Windows VM in a container
  2. Incus Next-generation system container, application container and virtual machine manager
  3. VirtualBox General-purpose open source full virtualization for laptops, desktops and servers

Compare Windows in Docker (dockur) with the top 3