使用 Docker 运行 Windows

docker-compose.yml

Text Only
version: "3"
services:
  windows:
    image: dockurr/windows
    container_name: windows
    devices:
      - /dev/kvm
    cap_add:
      - NET_ADMIN
    ports:
      - 8006:8006
      - 3389:3389/tcp
      - 3389:3389/udp
    stop_grace_period: 2m
    restart: on-failure
    environment:
      VERSION: "http://192.168.xxx.xxx:8080/en-us_windows_10_iot_enterprise_ltsc_2021_x64_dvd_257ad90f.iso"
      MANUAL: "N"
      RAM_SIZE: "2G"
      CPU_CORES: "4"
      DISK_SIZE: "40G"
    volumes:
      - ./win:/storage
    # depends_on:
    #   - winiso


  # winiso:
  #   image: nginx:alpine
  #   container_name: winiso
  #   restart: on-failure
  #   volumes:
  #    - ./iso:/usr/share/nginx/html

Text Only
docker-compose up