aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/xds-docker-create-container.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/xds-docker-create-container.sh b/scripts/xds-docker-create-container.sh
index b75ecfd..d041a22 100755
--- a/scripts/xds-docker-create-container.sh
+++ b/scripts/xds-docker-create-container.sh
@@ -22,7 +22,7 @@ REGISTRY=docker.automotivelinux.org
REPO=agl
NAME=worker
FLAVOUR=xds
-VERSION=3.99.1
+VERSION=4.0
# ---------------------------------------------------
# --- computed - don't touch !
@@ -61,7 +61,11 @@ while [ $# -ne 0 ]; do
shift
done
-[ "$ID" = "" ] && usage
+[ "$ID" = "" ] && ID=0
+
+docker ps -a |grep "$IMAGE" > /dev/null
+[ "$?" = "0" ] && { echo "Image name already exist ! (use -h option to read help)"; exit 1; }
+
USER=$(id -un)
echo "Using instance ID #$ID (user $(id -un))"