From 567b7901e4de8dcc640631ad61915ecb85d4a196 Mon Sep 17 00:00:00 2001 From: Qi Luo Date: Mon, 13 Mar 2017 17:37:45 -0700 Subject: [PATCH] Fix OneImage snmp mount (#392) --- rules/docker-lldp-sv2.mk | 1 + rules/docker-snmp-sv2.mk | 1 + 2 files changed, 2 insertions(+) diff --git a/rules/docker-lldp-sv2.mk b/rules/docker-lldp-sv2.mk index d9500d1d07..d19ca6b350 100644 --- a/rules/docker-lldp-sv2.mk +++ b/rules/docker-lldp-sv2.mk @@ -11,5 +11,6 @@ SONIC_INSTALL_DOCKER_IMAGES += $(DOCKER_LLDP_SV2) $(DOCKER_LLDP_SV2)_CONTAINER_NAME = lldp $(DOCKER_LLDP_SV2)_RUN_OPT += --net=host --privileged -t $(DOCKER_LLDP_SV2)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro +$(DOCKER_LLDP_SV2)_RUN_OPT += --volumes-from database $(DOCKER_LLDP_SV2)_BASE_IMAGE_FILES += lldpctl:/usr/bin/lldpctl diff --git a/rules/docker-snmp-sv2.mk b/rules/docker-snmp-sv2.mk index 95fdcc2577..60ca007d3f 100644 --- a/rules/docker-snmp-sv2.mk +++ b/rules/docker-snmp-sv2.mk @@ -12,3 +12,4 @@ SONIC_INSTALL_DOCKER_IMAGES += $(DOCKER_SNMP_SV2) $(DOCKER_SNMP_SV2)_CONTAINER_NAME = snmp $(DOCKER_SNMP_SV2)_RUN_OPT += --net=host --privileged -t $(DOCKER_SNMP_SV2)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro +$(DOCKER_SNMP_SV2)_RUN_OPT += --volumes-from database