Skip to content

Commit 72d83e5

Browse files
committed
Adjusting docker creation to include ports forwarding
and docker network type
1 parent 2ab00c7 commit 72d83e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

files/build_templates/docker_image_ctl.j2

+1-1
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ start() {
612612
# TODO: Mellanox will remove the --tmpfs exception after SDK socket path changed in new SDK version
613613
{%- endif %}
614614
docker create {{docker_image_run_opt}} \
615-
{%- if docker_container_name != "dhcp_server" %}
615+
{%- if docker_container_name != "dhcp_server" and '--net' not in docker_image_run_opt %}
616616
--net=$NET \
617617
{%- endif %}
618618
-e RUNTIME_OWNER=local \

0 commit comments

Comments
 (0)