]> source.dussan.org Git - archiva.git/commitdiff
Fix for older docker versions
authorMartin Stockhammer <martin_s@apache.org>
Fri, 9 Jun 2017 16:26:17 +0000 (18:26 +0200)
committerMartin Stockhammer <martin_s@apache.org>
Fri, 9 Jun 2017 16:26:17 +0000 (18:26 +0200)
src/ci/scripts/container_webtest.sh

index 0b73d8430e1c1ee056465ee5280dd5150cdc2362..e06d5d299d715c3bfe1968a176fa8aa04b211f6c 100644 (file)
@@ -39,6 +39,8 @@ TAG="${CONTAINER_NAME}:${CONTAINER_VERSION}"
 
 START_ARG="$1"
 
+docker -v
+
 function stop_instance() {
   CONT=`docker ps -q --filter=name=${INSTANCE_NAME}`
   if [ "${CONT}" != "" ]; then
@@ -55,7 +57,7 @@ function stop_instance() {
 
 function start_instance() {
   echo "Starting container ${INSTANCE_NAME}"
-  docker run -d --network="${NETWORK_TYPE}" -p "${PORT_MAPPING}" --name "${INSTANCE_NAME}" "${TAG}"
+  docker run -d --net="${NETWORK_TYPE}" -p "${PORT_MAPPING}" --name "${INSTANCE_NAME}" "${TAG}"
 }
 
 function print_usage() {