summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Yang <yangyang1@zte.com.cn>2018-08-21 16:14:41 +0800
committerAlex Yang <yangyang1@zte.com.cn>2018-08-21 16:14:41 +0800
commit776d2061bedda81278b421afde1b3d11cf48266e (patch)
treed29faac6398a5aa6251cdb33e2441a87279a8ccd
parent28e00b07abf318b17cb681cdac862437c54ed7c8 (diff)
Disable selinux option in docker for kolla-build
Set --selinux-enabled=false in /etc/sysconfig/docker. https://build.opnfv.org/ci/job/daisy-kolla-build-master/32/console Change-Id: Ib6e94ad4add5f8556294de9542c38e9b074f905a Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
-rwxr-xr-xci/kolla-build-vm.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/ci/kolla-build-vm.sh b/ci/kolla-build-vm.sh
index 30113cfe..5609cd3c 100755
--- a/ci/kolla-build-vm.sh
+++ b/ci/kolla-build-vm.sh
@@ -186,6 +186,8 @@ function pre_check {
yum install -y python2-pip
pip install tox
+ # SELinux is not supported with the overlay2 graph driver on this kernel.
+ sed -i 's/--selinux-enabled /--selinux-enabled=false /g' /etc/sysconfig/docker || true
# Just make sure docker is working.
/usr/bin/systemctl restart docker
}