aboutsummaryrefslogtreecommitdiffstats
path: root/build-root/scripts/docker.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build-root/scripts/docker.sh')
-rwxr-xr-xbuild-root/scripts/docker.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/build-root/scripts/docker.sh b/build-root/scripts/docker.sh
index baa994c..dce238a 100755
--- a/build-root/scripts/docker.sh
+++ b/build-root/scripts/docker.sh
@@ -18,10 +18,11 @@
IMAGE="sweetcomb_img"
CONTAINER="sweetcomb"
-#Clean previous build: container and image
+# rebuild env if neccessary
+echo "Remove previous container and image"
docker rm ${CONTAINER} -f
docker rmi ${IMAGE} -f
-#Rebuild image and container
+echo "Rebuild image and start container"
docker build -t ${IMAGE} .
-docker run -id --privileged --name ${CONTAINER} ${IMAGE}
+docker run -id --privileged --name ${CONTAINER} ${IMAGE} \ No newline at end of file