diff options
author | shuai.fu <shuai01.fu@samsung.com> | 2017-06-29 12:25:03 +0900 |
---|---|---|
committer | shuai.fu <shuai01.fu@samsung.com> | 2017-06-29 12:25:03 +0900 |
commit | 928a3ba534cd87a97c6c627126f119d8a46ec932 (patch) | |
tree | e527936d25834da52133f57fb396afc41ef0243f | |
parent | 35918c55aff1ba9cbbecc946551b8ad8892b7ebb (diff) | |
download | build-928a3ba534cd87a97c6c627126f119d8a46ec932.tar.gz build-928a3ba534cd87a97c6c627126f119d8a46ec932.tar.bz2 build-928a3ba534cd87a97c6c627126f119d8a46ec932.zip |
add --privileged flag in build-vm-docker
Change-Id: I332c81eb126f335bf0339f9d0a15fb2a921de26a
Signed-off-by: shuai.fu <shuai01.fu@samsung.com>
-rw-r--r-- | build-vm-docker | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build-vm-docker b/build-vm-docker index 3a76637..cd1558d 100644 --- a/build-vm-docker +++ b/build-vm-docker @@ -32,8 +32,8 @@ vm_startup_docker() { local docker_server=`cat /etc/hosts | grep docker | cut -f 1` local docker_port=`cat /etc/hosts | grep docker | cut -f 2` docker_port=${docker_port#docker} - docker -H $docker_server:$docker_port rm "$name" >/dev/null 2>&1 || true - docker -H $docker_server:$docker_port run \ + docker -H $docker_server:$docker_port rm --privileged "$name" >/dev/null 2>&1 || true + docker -H $docker_server:$docker_port run --privileged\ --rm --name "$name" --cap-add=sys_admin --net=none \ -v "$BUILD_ROOT:/mnt" busybox /bin/chroot /mnt "$vm_init_script" BUILDSTATUS="$?" |