zun/doc/source/configuration/clear-containers.rst
Hongbin Lu a869abf951 Consolidate admin guide and configuration guide
Both admin guide and configuration guide are targeting for the
same group of readers. There is no need to separate these two guides.
Move all contents under doc/source/admin to doc/source/configuration

Change-Id: I7560a8a52c2c4a23758dda75ae2979a68dd7c060
2018-03-25 17:58:59 +00:00

1.3 KiB

Clear Containers in Zun

Zun now supports running Clear Containers with regular Docker containers. Clear containers run containers as very lightweight virtual machines which boot up really fast and has low memory footprints. It provides security to the containers with an isolated environment. You can read more about Clear Containers here.

Installation with DevStack

It is possible to run Clear Containers with Zun. Follow the /contributor/quickstart to download DevStack, Zun code and copy the local.conf file. Now perform the following steps to install Clear Containers with DevStack:

cd /opt/stack/devstack
echo "ENABLE_CLEAR_CONTAINER=true" >> local.conf
./stack.sh

Verify the installation by:

$ sudo docker info | grep Runtimes
Runtimes: cor runc

Using Clear Containers with Zun

To create Clear Containers with Zun, specify the --runtime option:

zun run --name clear-container --runtime cor cirros ping -c 4 8.8.8.8

Note

Clear Containers support in Zun is not production ready. It is recommended not to running Clear Containers and runc containers on the same host.