From 21142a0e4c0ed19873bf030917a9dfa477f0d87d Mon Sep 17 00:00:00 2001 From: Madhuri Kumari Date: Wed, 13 Dec 2017 13:00:25 +0530 Subject: [PATCH] Add a doc to explain Clear Containers support in Zun Change-Id: I9ac92c003b2d7fe063f0fe2c7673d9ac8b31de3b --- doc/source/admin/clear-containers.rst | 36 +++++++++++++++++++++++++++ doc/source/admin/index.rst | 1 + 2 files changed, 37 insertions(+) create mode 100644 doc/source/admin/clear-containers.rst diff --git a/doc/source/admin/clear-containers.rst b/doc/source/admin/clear-containers.rst new file mode 100644 index 000000000..ee0bba18b --- /dev/null +++ b/doc/source/admin/clear-containers.rst @@ -0,0 +1,36 @@ +======================= +Clear Containers in Zun +======================= + +Zun now supports running Clear Containers with regular Docker containers. +Clear containers run containers as very lightweight virtual machines +which boots 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 +:doc:`/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 run Clear Containers and runc containers on the same host. diff --git a/doc/source/admin/index.rst b/doc/source/admin/index.rst index c035d5e49..72dbfff4d 100644 --- a/doc/source/admin/index.rst +++ b/doc/source/admin/index.rst @@ -12,3 +12,4 @@ the services. :maxdepth: 1 osprofiler + clear-containers