# Quick Start: running rune with Occlum [rune](https://github.com/alibaba/inclavare-containers) is a new OCI runtime used to run trusted applications in containers with the hardware-assisted enclave technology. ## Requirements - Install [Intel SGX driver for Linux](https://github.com/intel/linux-sgx-driver#build-and-install-the-intelr-sgx-driver), required by Intel SGX SDK && PSW. - Install [enable_rdfsbase kernel module](https://github.com/occlum/enable_rdfsbase#how-to-build), allowing to use `rdfsbase` -family instructions in Occlum. - Assume the host system is CentOS 7.5. - You can also launch a CentOS 7.5 container as your host system with the following command: ```shell docker run -it --privileged --device /dev/isgx centos:7.5.1804 ``` If so, you need to run **another docker daemon** inside this CentOS 7.5 container. Please refer to [this guide](https://docs.docker.com/engine/install/centos) to install docker daemon, and type the following command to start dockerd. ```shell dockerd -b docker0 --storage-driver=vfs & ``` --- ## Build Occlum application container image ### Download Occlum SDK container image ```shell mkdir "$HOME/rune_workdir" docker run -it --privileged --device /dev/isgx \ -v "$HOME/rune_workdir":/root/rune_workdir \ occlum/occlum:0.14.0-centos7.5 ``` ### Prepare the materials Before Occlum build, execute the following command to set your Occlum instance name: ```shell export OCCLUM_INSTANCE_DIR=occlum-app ``` [This guide](https://github.com/occlum/occlum#hello-occlum) can help you to create your first occlum build. Assuming "hello world" demo program is built, execute the following commands in Occlum SDK container: ```shell cp -a ${OCCLUM_INSTANCE_DIR} /root/rune_workdir ``` ### Prepare Occlum application image Now you can build your occlum application image in the $HOME/rune_workdir directory of your host system. Type the following commands to create a `Dockerfile`: ``` Dockerfile cd "$HOME/rune_workdir" cat >Dockerfile <