From 04a4b8dcb1b51894359ea7557e40b3b2147c7b61 Mon Sep 17 00:00:00 2001 From: "Marty Y. Lok" <76118573+mlok-nokia@users.noreply.github.com> Date: Mon, 13 Dec 2021 13:17:05 -0500 Subject: [PATCH] [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. --- files/build_templates/docker_image_ctl.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/files/build_templates/docker_image_ctl.j2 b/files/build_templates/docker_image_ctl.j2 index be0a851fc2..e16ec4e20e 100644 --- a/files/build_templates/docker_image_ctl.j2 +++ b/files/build_templates/docker_image_ctl.j2 @@ -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"