Skip to content

Commit 296470d

Browse files
authored
[docker-iccp]: do not mount kernel module into iccp container (#4372)
kernel module should be loaded outside container Signed-off-by: Guohan Lu <[email protected]>
1 parent 60b1649 commit 296470d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

files/build_templates/docker_image_ctl.j2

+2-5
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,6 @@ start() {
231231
{%- if docker_container_name != "database" %}
232232
-v /usr/share/sonic/device/$PLATFORM/$HWSKU/$DEV:/usr/share/sonic/hwsku:ro \
233233
{%- endif %}
234-
{%- if docker_container_name == "iccpd" %}
235-
-v /lib/modules:/lib/modules:ro \
236-
{%- endif %}
237234
{%- if sonic_asic_platform != "mellanox" %}
238235
--tmpfs /tmp \
239236
{%- endif %}
@@ -255,7 +252,7 @@ wait() {
255252
stop() {
256253
docker stop {{docker_container_name}}$DEV
257254
{%- if docker_container_name == "database" %}
258-
if [ "$DEV" ]; then
255+
if [ "$DEV" ]; then
259256
ip netns delete "$NET_NS"
260257
fi
261258
{%- endif %}
@@ -266,7 +263,7 @@ DEV=$2 # namespace/device number to operate on
266263
if [ "$DEV" ]; then
267264
NET_NS="asic$DEV" #name of the network namespace
268265
else
269-
NET_NS=""
266+
NET_NS=""
270267
fi
271268

272269
case "$1" in

0 commit comments

Comments
 (0)