[docker-iccp]: do not mount kernel module into iccp container (#4372)

kernel module should be loaded outside container

Signed-off-by: Guohan Lu <lguohan@gmail.com>
This commit is contained in:
lguohan 2020-04-06 07:40:24 -07:00 committed by GitHub
parent 60b16495cc
commit 296470de25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -231,9 +231,6 @@ start() {
{%- if docker_container_name != "database" %}
-v /usr/share/sonic/device/$PLATFORM/$HWSKU/$DEV:/usr/share/sonic/hwsku:ro \
{%- endif %}
{%- if docker_container_name == "iccpd" %}
-v /lib/modules:/lib/modules:ro \
{%- endif %}
{%- if sonic_asic_platform != "mellanox" %}
--tmpfs /tmp \
{%- endif %}
@ -255,7 +252,7 @@ wait() {
stop() {
docker stop {{docker_container_name}}$DEV
{%- if docker_container_name == "database" %}
if [ "$DEV" ]; then
if [ "$DEV" ]; then
ip netns delete "$NET_NS"
fi
{%- endif %}
@ -266,7 +263,7 @@ DEV=$2 # namespace/device number to operate on
if [ "$DEV" ]; then
NET_NS="asic$DEV" #name of the network namespace
else
NET_NS=""
NET_NS=""
fi
case "$1" in