Skip to content

Commit 04a4b8d

Browse files
authored
[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.
1 parent 6c0da4b commit 04a4b8d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

files/build_templates/docker_image_ctl.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@ start() {
368368
fi
369369

370370
{%- if docker_container_name == "database" %}
371+
NET="bridge"
371372
DB_OPT=$DB_OPT" -v /var/run/redis$DEV:/var/run/redis:rw "
372373
{%- else %}
373374
NET="container:database$DEV"

0 commit comments

Comments
 (0)