From 77d2cd67855a2ed99f77e2fe8aac65c092a6face Mon Sep 17 00:00:00 2001 From: yufei_zhou Date: Wed, 25 Oct 2017 13:36:56 +0800 Subject: add priviledge to systemctrl Change-Id: Ic5770855ab748555e657a6dae72f653e3465daab Issue-ID: VFC-544 Signed-off-by: yufei_zhou --- nokia/vnfmdriver/vfcadaptorservice/docker/instance-init.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nokia/vnfmdriver/vfcadaptorservice/docker/instance-init.sh b/nokia/vnfmdriver/vfcadaptorservice/docker/instance-init.sh index a3c6372e..93584e51 100755 --- a/nokia/vnfmdriver/vfcadaptorservice/docker/instance-init.sh +++ b/nokia/vnfmdriver/vfcadaptorservice/docker/instance-init.sh @@ -17,6 +17,9 @@ # Config mysql credentials function start_mysql { + sudo docker run --privileged -i -t -p 10080:80 centos /usr/sbin/init + sudo docker run --privileged -ti -e "container=docker" -v /sys/fs/cgroup:/sys/fs/cgroup centos /usr/sbin/init + echo "start mysql in instance_init ... " systemctl start mysql.service > myout_instance_init.file 2>&1 cat myout_instance_init.file -- cgit 1.2.3-korg