Giter Site home page Giter Site logo

windows-in-docker-1's Introduction

Windows in Docker

Docker Pulls

You really can run any VM / container you want under this. But I made it specifically to make headless windows less of a PITA.

Technically this is more of a "manage Windows in Docker" type of project, you can shutdown dockerd and all of your VMs won't be effected.

What It Does

Download VirtIO Windows Drivers

Periodically dump latest virtio-win.iso into /data

From latest stable release

Web GUI 4 Virt Manager

virt man

Usage

  1. Install libvirt-daemon under linux host, ie apt install -- libvirt-daemon-system.

  2. Run the following docker-compose.

---
version: "3.9"

services:
  libvirt:
    restart: always
    image: msjpq/windows-in-docker:latest
    security_opt:
      - apparmor=unconfined
    environment:
      TZ:
      # Make sure DATA_DIR is the same across the three `${DATA_DIR}`s
      # The windows drivers are also downloaded under here.
      DATA_DIR: "${DATA_DIR}"
    ports:
      - 80:8080
    volumes:
      - /var/run/libvirt/libvirt-sock:/var/run/libvirt/libvirt-sock:ro
      - "${DATA_DIR}:${DATA_DIR}"
  1. Drag in some ISOs you want to install under ${DATA_DIR}.

  2. Go to port 80, follow the GUI, you are good to go.

Wait A Minute

Libvirt doesn't run under Docker tho?

Well, I realized running libvirt under Docker was actually a stupid idea.

You can't say provision a ZFS storage pool for example.

windows-in-docker-1's People

Contributors

ms-jpq avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.