TipsAndTricks/BuildingAndRunningClearContainersonTarget

From Yocto Project
Revision as of 14:56, 8 July 2017 by Bavery (talk | contribs) (Created page with "== What & Why == Clear containers offer a hybrid solution that encompasses the advantages of hypervisor security and container deployment. So, we wanted to see if they could ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

What & Why

Clear containers offer a hybrid solution that encompasses the advantages of hypervisor security and container deployment. So, we wanted to see if they could be used in a YP environment. This was done for Clear Containers 2.2 based on YP master around the time of 2.4 RC1/2.
Note: this is a Proof of Concept, done by building on target. The eventual goal would be to create a standard recipe to allow the clear containers to be built in the standard way. Hopefully, this guide will help with that by outlining the parts, dependencies, and configuration steps. This guide assumes you already have docker running on your target by having followed Running Docker on your image . The target example is being done with an Intel Nuc. I have successfully run the same code on a Minnowboard Turbot.

The Pieces

Clear Containers are comprised of a set of software and binaries.

The Runtime

This comes from [clear oci runtime]. While getting it to work, I followed the development model outlined in Leveraging Rpm Package Feeds. Here I will list the dependencies to make it shorter.
Which Clear was this?

cc-oci-runtime version: 2.2.0
spec version: 1.0.0-rc1
commit: f92d50ad54003298c139de59777f07588683cdc2

Dependencies you need

The Hypervisor

The Hypervisor's Binaries

Running It

Configuration

Programs

Example

Debugging