summaryrefslogtreecommitdiffstats
path: root/nokia/vnfmdriver
diff options
context:
space:
mode:
authorFu Jinhua <fu.jinhua@zte.com.cn>2017-10-25 06:02:27 +0000
committerGerrit Code Review <gerrit@onap.org>2017-10-25 06:02:27 +0000
commit51fd032f7ddcc1db1727416053b93d8998904d84 (patch)
treec4b7577a48bea5e67f78272e84087b4255fa1fdf /nokia/vnfmdriver
parentd5fe9635fb2d096a8533371cb6403cf05ddac962 (diff)
parent77d2cd67855a2ed99f77e2fe8aac65c092a6face (diff)
Merge "add priviledge to systemctrl"
Diffstat (limited to 'nokia/vnfmdriver')
-rwxr-xr-xnokia/vnfmdriver/vfcadaptorservice/docker/instance-init.sh3
1 files changed, 3 insertions, 0 deletions
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