Giter Site home page Giter Site logo

windows-in-docker's Introduction

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's People

Contributors

ms-jpq avatar

Stargazers

 avatar  avatar Ziva avatar  avatar Alojzij Blatnik avatar  avatar Pedro Rodriguez avatar  avatar  avatar  avatar NikolasMSP avatar  avatar  avatar chen avatar Thomas Leon Highbaugh avatar  avatar jiahui avatar Ivan Shvedunov avatar Sagar Verma avatar Evan avatar ingramchen avatar Vinh avatar Cross avatar Jeremy Rogers avatar  avatar  avatar  avatar  avatar Christopher Kloß avatar  avatar VMatrices avatar Martin Nicholls avatar  avatar John Adams avatar  avatar Denis Nobre avatar  avatar zhaojinzhou avatar  avatar Donny Kurnia avatar xdave avatar Mirco Attocchi avatar Hirohisa Mitsuishi avatar Matt Shaffer avatar  avatar YinZi avatar Edwin Wang avatar  avatar  avatar Ace Gao avatar WOLF avatar Alan Umir avatar  avatar benshi avatar  avatar maxdevjs avatar  avatar Antoine Boucher avatar Lynn Dylan Hurley avatar alex avatar  avatar

Watchers

lapnd avatar  avatar  avatar Matt Shaffer avatar

windows-in-docker's Issues

Error

Hi!

I followed the procedure as described and when starting the VM this error appeared:

image

Remote Access

After the machine is running (in my case W2K16 Core) how do I access the remote desktop externally.
I enabled remote access on the VM and made port forwarding on the container.

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.