Disable selinux option in docker for kolla-build 61/61161/1
authorAlex Yang <yangyang1@zte.com.cn>
Tue, 21 Aug 2018 08:14:41 +0000 (16:14 +0800)
committerAlex Yang <yangyang1@zte.com.cn>
Tue, 21 Aug 2018 08:14:41 +0000 (16:14 +0800)
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>
ci/kolla-build-vm.sh

index 30113cf..5609cd3 100755 (executable)
@@ -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
 }