Docker.io for Windows

I was reading a nice question about docker - answer has overview of docker implementation details. I was wondering if anything like this is possible to do on Windows platform.

  • Do Windows alternatives for Docker exist?
  • Is it theoretically possible to use other (Windows based) components to build it?
  • Update1 :

  • Slightly related question (sandboxing): Is there a lightweight, programmable Sandbox API for the Windows platform?
  • Update2: :

    For info how to install docker on windows (unrelated) - official docs has great instructions how to set up the environment by using boot2docker VM.


    You can run docker in a virtual machine.


    New Update

    Vagrant has now integrated docker support. It can be used as provider or as provisioner. Here are some useful links.

    Feature Preview: Docker-Based Development Environments

    Vagrant Docs: Docker Provisioner

    Vagrant Docs: Docker Provider


    Old Update

    As seanf pointed out in a comment below, Vagrant support was dropped. Instead they point to boot2docker:

    boot2docker is a lightweight Linux distribution based on Tiny Core Linux made specifically to run Docker containers. It runs completely from RAM, weighs ~24MB and boots in ~5s (YMMV).

    Old answer

    The official docker documentation contains a small guide to install docker inside a Vagrant box. Vagrant is a great vm management wrapper. The guide is for Mac/Linux, but you get the idea to do the same in Windows:

    http://docs.docker.io/en/latest/installation/vagrant/

    This way you can share docker images across multiple systems with different operating systems.


    If you're just searching for a way to deploy a pre-packaged set of applications in some sort of container for Windows, with registry and file access being virtualized but without using a full-blown virtual machine image, these (commercial) sandbox-like applications might be worth looking at:

  • Symantec Workspace Virtualization (get some ready-to-use packages from here)
  • Evalaze
  • Cameyo
  • BoxedApp
  • Edit: There's a new kid on the block, Spoon supports containers for Windows, and it actually looks very promising.


    I have found that at least file system related functionality has Windows (7,8) already in place. One can use VHD files (virtual disks) for handling "images" concept in Docker. These image are used for virtual machine but can be created/attached/used directly by Windows too:

    diskpart
    DISKPART> create vdisk file=c:base-image.vhd maximum=200 type=expandable
    

    New image can be layered on top of base image:

    DISKPART> create vdisk file=c:image-2.vhd parent=c:base-image.vhd
    

    See more information about managing virtual disks.

    Unfortunately, process lightweight isolation/sandboxing is probably not possible (at least not simple), although some methods do exists (http://www.sandboxie.com/, Native Client in Google Chrome ...)

    链接地址: http://www.djcxy.com/p/18198.html

    上一篇: Windows容器可以托管在Linux上吗?

    下一篇: 适用于Windows的Docker.io