diff options
author | yufei_zhou <yufei.zhou@nokia-sbell.com> | 2017-10-25 13:36:56 +0800 |
---|---|---|
committer | yufei_zhou <yufei.zhou@nokia-sbell.com> | 2017-10-25 13:36:56 +0800 |
commit | 77d2cd67855a2ed99f77e2fe8aac65c092a6face (patch) | |
tree | d4ddc61c6c26d108772d5cc3f2709345f4e34ebc /nokia | |
parent | fd0622a54e631438d0016064d8800ace6320e809 (diff) |
add priviledge to systemctrl
Change-Id: Ic5770855ab748555e657a6dae72f653e3465daab
Issue-ID: VFC-544
Signed-off-by: yufei_zhou <yufei.zhou@nokia-sbell.com>
Diffstat (limited to 'nokia')
-rwxr-xr-x | nokia/vnfmdriver/vfcadaptorservice/docker/instance-init.sh | 3 |
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 |