From 5dca5db06b0cc62d047930a43d96e180a43a1188 Mon Sep 17 00:00:00 2001 From: Rolf Neugebauer Date: Thu, 13 Jul 2017 17:27:59 +0100 Subject: [PATCH] blueprints: Add blueprint for LCOW See the README for instructions on how to use Signed-off-by: Rolf Neugebauer --- blueprints/README.md | 12 ++++++++++++ blueprints/lcow.yml | 9 +++++++++ 2 files changed, 21 insertions(+) create mode 100644 blueprints/lcow.yml diff --git a/blueprints/README.md b/blueprints/README.md index 21a96ac71..cebbae73a 100644 --- a/blueprints/README.md +++ b/blueprints/README.md @@ -19,6 +19,7 @@ the [examples/](../examples/) directory. - Packet.net - ... + ### Docker for Mac An initial blueprint for the open source components of Docker for Mac is available in [docker-for-mac](docker-for-mac). The blueprint has support for controlling `dockerd` from the host via `vsudd` and port forwarding with VPNKit. It requires HyperKit, VPNKit and a Docker client on the host to run. The easiest way to install these at the moment is to install a recent version of Docker for Mac. @@ -42,3 +43,14 @@ $ docker -H unix://docker-for-mac-state/guest.00000947 ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES ``` +### Linux Containers On Windows (LCOW) + +The [LCOW](./lcow.yml) file contains the blueprint for building a +minimal Linux kernel and initrd for Linux Containers on +Windows. Invoke it with `moby build lcow.yml` and you get a +`lcow-kernel` and `lcow-initrd.img`. Rename `lcow-kernel` to +`bootx64.efi` and `lcow-initrd.img` to `initrd.img` and then +follow +[these instructions](https://github.com/moby/moby/issues/33850). The +process for creating the image is +documented [here](https://github.com/Microsoft/opengcs). diff --git a/blueprints/lcow.yml b/blueprints/lcow.yml new file mode 100644 index 000000000..e2dc12e41 --- /dev/null +++ b/blueprints/lcow.yml @@ -0,0 +1,9 @@ +kernel: + image: linuxkit/kernel:4.11.9 + cmdline: "console=ttyS0" + tar: none +init: + - linuxkit/init-lcow:ae67df4c4cabb35aae06898cb94fe03972a172e9 +trust: + org: + - linuxkit