From 1f10c9ecdf7a4c5c0d884ebdcbf47a945a343a9f Mon Sep 17 00:00:00 2001 From: immarvin Date: Tue, 26 Jan 2016 21:19:25 -0500 Subject: [PATCH] add a section to disable Apparmor/SElinux on Docker host --- .../source/advanced/docker/run_xcat_in_docker.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/source/advanced/docker/run_xcat_in_docker.rst b/docs/source/advanced/docker/run_xcat_in_docker.rst index 254a537c1..8b2e8a5e2 100644 --- a/docs/source/advanced/docker/run_xcat_in_docker.rst +++ b/docs/source/advanced/docker/run_xcat_in_docker.rst @@ -14,6 +14,21 @@ You can select a baremental or virtual server with the Operating Systems which d **Note:** **Docker image** can only run on the **Docker host** with the same architecture. Since xCAT currently only ships x86_64 and ppc64le Docker images, running xCAT in Docker requires x86_64 or ppc64le **Docker hosts**. +Shutdown the SELinux/Apparmor on Docker host +-------------------------------------------- + +If the SELinux or Apparmor on Docker host is enabled, the services/applications inside Docker Container might be confined. + +SELinux can be disabled with: :: + + echo 0 > /selinux/enforce + sed -i 's/^SELINUX=.*$/SELINUX=disabled/' /etc/selinux/config + +AppArmor can be disabled with: :: + + /etc/init.d/apparmor teardown + + An example configuration in the documentation ---------------------------------------------