aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/xds-docker-create-container.sh
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2017-08-30 23:48:29 +0200
committerSebastien Douheret <sebastien.douheret@iot.bzh>2017-08-30 23:48:29 +0200
commitcd43200c4814e86d2774b3181c4f8f9bd3755f5b (patch)
treea3496e683ef9b17c7a1bbc6ae66290ec04f049f2 /scripts/xds-docker-create-container.sh
parent396aa84d2521516168cf0e3e8119d550327dff45 (diff)
Bump docker container version to 4.0 and update doc.
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Diffstat (limited to 'scripts/xds-docker-create-container.sh')
-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))"