diff options
author | Martin Stockhammer <martin_s@apache.org> | 2017-06-09 18:26:17 +0200 |
---|---|---|
committer | Martin Stockhammer <martin_s@apache.org> | 2017-06-09 18:26:17 +0200 |
commit | 75f14a95d9fbe62de9c2529562e8a004d969fcb1 (patch) | |
tree | f879ff508ae011c092e060e34d1aaad74f098273 /src/ci/scripts/container_webtest.sh | |
parent | 8183ff19eb4b02350c452c2c8f9b6518d7c1aae9 (diff) | |
download | archiva-75f14a95d9fbe62de9c2529562e8a004d969fcb1.tar.gz archiva-75f14a95d9fbe62de9c2529562e8a004d969fcb1.zip |
Fix for older docker versions
Diffstat (limited to 'src/ci/scripts/container_webtest.sh')
-rw-r--r-- | src/ci/scripts/container_webtest.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ci/scripts/container_webtest.sh b/src/ci/scripts/container_webtest.sh index 0b73d8430..e06d5d299 100644 --- a/src/ci/scripts/container_webtest.sh +++ b/src/ci/scripts/container_webtest.sh @@ -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() { |