Skip to content

Commit

Permalink
[multiasic][database]database.sh failed to create the database for na…
Browse files Browse the repository at this point in the history
…mespace (sonic-net#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 sonic-net#9503

How I did it
Modify the docker_image_ctl.j2 to set default network setting NET="bridge" instead of empty for namespace database.
  • Loading branch information
mlok-nokia authored Dec 13, 2021
1 parent 6c0da4b commit 04a4b8d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions files/build_templates/docker_image_ctl.j2
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ start() {
fi

{%- if docker_container_name == "database" %}
NET="bridge"
DB_OPT=$DB_OPT" -v /var/run/redis$DEV:/var/run/redis:rw "
{%- else %}
NET="container:database$DEV"
Expand Down

0 comments on commit 04a4b8d

Please sign in to comment.