File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,11 +61,13 @@ echo "Container name: ${ACAPY_CONTAINER_NAME}"
6161
6262ACAPY_NETWORK_NAME=" ${NETWORK_NAME} "
6363# Create new Docker network if it does not exist.
64- if [ -n " ${NETWORK_NAME} " ] && [ -z " $( docker network ls --filter name=^" ${NETWORK_NAME} " $ --format=" {{ .Name }}" ) " ]; then
65- docker network create " ${NETWORK_NAME} "
66- fi
6764if [ -n " ${NETWORK_NAME} " ]; then
68- echo " Docker network specified: ${ACAPY_NETWORK_NAME} "
65+ if [ -z " $( " $CONTAINER_RUNTIME " network ls --filter name=^" ${NETWORK_NAME} " $ --format=" {{ .Name }}" ) " ]; then
66+ echo " Creating new Docker network: ${ACAPY_NETWORK_NAME} "
67+ " $CONTAINER_RUNTIME " network create " ${NETWORK_NAME} "
68+ else
69+ echo " Attaching to existing Docker network: ${ACAPY_NETWORK_NAME} "
70+ fi
6971 ARGS=" ${ARGS} --network ${NETWORK_NAME} "
7072else
7173 echo " No Docker network specified."
You can’t perform that action at this time.
0 commit comments