Skip to content

Commit af82081

Browse files
committed
Adjusting docker creation to include ports forwarding
and docker network type
1 parent 95f317a commit af82081

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

files/build_templates/docker_image_ctl.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,9 @@ start() {
540540
# TODO: Mellanox will remove the --tmpfs exception after SDK socket path changed in new SDK version
541541
{%- endif %}
542542
docker create {{docker_image_run_opt}} \
543+
{%- if '--net' not in docker_image_run_opt %}
543544
--net=$NET \
545+
{%- endif %}
544546
-e RUNTIME_OWNER=local \
545547
--uts=host \{# W/A: this should be set per-docker, for those dockers which really need host's UTS namespace #}
546548
{%- if install_debug_image == "y" %}

0 commit comments

Comments
 (0)