[multiasic][database]database.sh failed to create the database for namespace (#9502)

Why I did it
database.sh failed to create the database for namespace in multiasic platform.
The latest code Docker version 20.10.x, command "docker create" no longer takes optional "NET=" with empty value. Syntax error show with current docker create command in database.sh. Issue #9503

How I did it
Modify the docker_image_ctl.j2 to set default network setting NET="bridge" instead of empty for namespace database.
This commit is contained in:
Marty Y. Lok 2021-12-13 13:17:05 -05:00 committed by GitHub
parent 6c0da4bcf0
commit 04a4b8dcb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -368,6 +368,7 @@ start() {
fi fi
{%- if docker_container_name == "database" %} {%- if docker_container_name == "database" %}
NET="bridge"
DB_OPT=$DB_OPT" -v /var/run/redis$DEV:/var/run/redis:rw " DB_OPT=$DB_OPT" -v /var/run/redis$DEV:/var/run/redis:rw "
{%- else %} {%- else %}
NET="container:database$DEV" NET="container:database$DEV"