about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorMartin Nowack <m.nowack@imperial.ac.uk>2020-09-24 11:18:13 +0100
committerCristian Cadar <c.cadar@imperial.ac.uk>2020-09-30 16:34:47 +0100
commit7cdcef25d7fcb35b5fc96c678d21b410ae342acc (patch)
tree8946a0450bdfb06bd3ff7527634ea78dab9a1d51
parent191dab872c56da0933a13db37df8a446d7bda233 (diff)
downloadklee-7cdcef25d7fcb35b5fc96c678d21b410ae342acc.tar.gz
Delete Docker instance after system detection ran
Don't keep the docker instance for detecting the system around to
avoid stale terminated containers.
-rwxr-xr-xscripts/build/build.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/build/build.sh b/scripts/build/build.sh
index e869116b..2ddb7bd6 100755
--- a/scripts/build/build.sh
+++ b/scripts/build/build.sh
@@ -79,7 +79,7 @@ check_docker_os() {
   local docker_base=$1
   local os_info=""
   # start docker using the base image, link this directory and get the os information
-  os_info=$(docker run -v "${DIR}:/tmp" "${docker_base}" /tmp/build.sh --check-os) || { echo "Docker execution failed: $os_info"; exit 1;}
+  os_info=$(docker run --rm -v "${DIR}:/tmp" "${docker_base}" /tmp/build.sh --check-os) || { echo "Docker execution failed: $os_info"; exit 1;}
 
   local line
   while read -r line; do