Workflow
容器化技术
icon
Search documents
在 Docker 里跑 Windows?有点离谱,但真能跑~
菜鸟教程· 2025-09-19 03:29
Core Viewpoint - The article discusses an open-source project that allows running a full Windows operating system within a Docker container, providing a lightweight alternative to traditional virtual machines [1][3]. Group 1: Docker Overview - Docker is described as a lightweight virtualization tool that packages applications and their environments into containers, allowing for quick startup and minimal resource usage compared to traditional virtual machines [5][6]. - Docker can run various applications, including MySQL, Nginx, and Python, on Linux while isolating different environments [7]. Group 2: Windows in Docker - The project dockur/windows enables the installation of Windows operating systems within Docker containers, which is an unconventional approach as Docker is typically used for Linux applications [8]. - Supported Windows versions and their sizes are listed, including: - Windows 11 Pro: 5.4 GB - Windows 10 Pro: 5.7 GB - Windows 7 Ultimate: 3.1 GB - Windows XP Professional: 0.6 GB - Windows Server 2022: 6.0 GB [9][10]. Group 3: Installation Instructions - Three methods for running Windows in Docker are provided: 1. Using Docker Compose with a configuration file [11]. 2. Using Docker CLI for direct command execution [11]. 3. Deploying via Kubernetes with an official configuration file [11]. - After configuration, executing `docker-compose up -d` allows access to the Windows desktop via a web browser [12].