Remove --net=host from run options for containers
The start template script that this value is used in will determine what network namespace to use, and will add --net=host if it needs to run in the host namespace. With Docker 20.10, if --net=host is specified twice in docker run, then it errors out. Therefore, remove the explicit --net=host in the run options setting and let the start template script specify it. Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
This commit is contained in:
parent
dc0b03ef3f
commit
c38b95c899
@ -19,7 +19,7 @@ endif
|
|||||||
$(DOCKER_SYNCD_BFN_RPC)_CONTAINER_NAME = syncd
|
$(DOCKER_SYNCD_BFN_RPC)_CONTAINER_NAME = syncd
|
||||||
$(DOCKER_SYNCD_BFN_RPC)_VERSION = 1.0.0-rpc
|
$(DOCKER_SYNCD_BFN_RPC)_VERSION = 1.0.0-rpc
|
||||||
$(DOCKER_SYNCD_BFN_RPC)_PACKAGE_NAME = syncd
|
$(DOCKER_SYNCD_BFN_RPC)_PACKAGE_NAME = syncd
|
||||||
$(DOCKER_SYNCD_BFN_RPC)_RUN_OPT += --net=host --privileged -t
|
$(DOCKER_SYNCD_BFN_RPC)_RUN_OPT += --privileged -t
|
||||||
$(DOCKER_SYNCD_BFN_RPC)_RUN_OPT += -v /host/machine.conf:/etc/machine.conf
|
$(DOCKER_SYNCD_BFN_RPC)_RUN_OPT += -v /host/machine.conf:/etc/machine.conf
|
||||||
$(DOCKER_SYNCD_BFN_RPC)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
|
$(DOCKER_SYNCD_BFN_RPC)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
|
||||||
$(DOCKER_SYNCD_BFN_RPC)_RUN_OPT += -v /host/warmboot:/var/warmboot
|
$(DOCKER_SYNCD_BFN_RPC)_RUN_OPT += -v /host/warmboot:/var/warmboot
|
||||||
|
@ -28,7 +28,7 @@ SONIC_DOCKER_DBG_IMAGES += $(DOCKER_PDE_DBG)
|
|||||||
SONIC_INSTALL_DOCKER_DBG_IMAGES += $(DOCKER_PDE_DBG)
|
SONIC_INSTALL_DOCKER_DBG_IMAGES += $(DOCKER_PDE_DBG)
|
||||||
|
|
||||||
$(DOCKER_PDE)_CONTAINER_NAME = pde
|
$(DOCKER_PDE)_CONTAINER_NAME = pde
|
||||||
$(DOCKER_PDE)_RUN_OPT += --net=host --privileged -t
|
$(DOCKER_PDE)_RUN_OPT += --privileged -t
|
||||||
$(DOCKER_PDE)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
|
$(DOCKER_PDE)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
|
||||||
$(DOCKER_PDE)_RUN_OPT += -v /host/machine.conf:/host/machine.conf:ro
|
$(DOCKER_PDE)_RUN_OPT += -v /host/machine.conf:/host/machine.conf:ro
|
||||||
$(DOCKER_PDE)_RUN_OPT += -v /usr/lib/python2.7/dist-packages:/usr/share/sonic/classes:ro
|
$(DOCKER_PDE)_RUN_OPT += -v /usr/lib/python2.7/dist-packages:/usr/share/sonic/classes:ro
|
||||||
|
@ -8,7 +8,7 @@ $(DOCKER_SAISERVER_BRCM)_LOAD_DOCKERS += $(DOCKER_CONFIG_ENGINE_BUSTER)
|
|||||||
SONIC_DOCKER_IMAGES += $(DOCKER_SAISERVER_BRCM)
|
SONIC_DOCKER_IMAGES += $(DOCKER_SAISERVER_BRCM)
|
||||||
|
|
||||||
$(DOCKER_SAISERVER_BRCM)_CONTAINER_NAME = saiserver
|
$(DOCKER_SAISERVER_BRCM)_CONTAINER_NAME = saiserver
|
||||||
$(DOCKER_SAISERVER_BRCM)_RUN_OPT += --net=host --privileged -t
|
$(DOCKER_SAISERVER_BRCM)_RUN_OPT += --privileged -t
|
||||||
$(DOCKER_SAISERVER_BRCM)_RUN_OPT += -v /host/machine.conf:/etc/machine.conf
|
$(DOCKER_SAISERVER_BRCM)_RUN_OPT += -v /host/machine.conf:/etc/machine.conf
|
||||||
$(DOCKER_SAISERVER_BRCM)_RUN_OPT += -v /var/run/docker-saiserver:/var/run/sswsyncd
|
$(DOCKER_SAISERVER_BRCM)_RUN_OPT += -v /var/run/docker-saiserver:/var/run/sswsyncd
|
||||||
$(DOCKER_SAISERVER_BRCM)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
|
$(DOCKER_SAISERVER_BRCM)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
|
||||||
|
@ -19,6 +19,6 @@ endif
|
|||||||
$(DOCKER_SYNCD_CAVM_RPC)_CONTAINER_NAME = syncd
|
$(DOCKER_SYNCD_CAVM_RPC)_CONTAINER_NAME = syncd
|
||||||
$(DOCKER_SYNCD_CAVM_RPC)_VERSION = 1.0.0-rpc
|
$(DOCKER_SYNCD_CAVM_RPC)_VERSION = 1.0.0-rpc
|
||||||
$(DOCKER_SYNCD_CAVM_RPC)_PACKAGE_NAME = syncd
|
$(DOCKER_SYNCD_CAVM_RPC)_PACKAGE_NAME = syncd
|
||||||
$(DOCKER_SYNCD_CAVM_RPC)_RUN_OPT += --net=host --privileged -t
|
$(DOCKER_SYNCD_CAVM_RPC)_RUN_OPT += --privileged -t
|
||||||
$(DOCKER_SYNCD_CAVM_RPC)_RUN_OPT += -v /host/machine.conf:/etc/machine.conf
|
$(DOCKER_SYNCD_CAVM_RPC)_RUN_OPT += -v /host/machine.conf:/etc/machine.conf
|
||||||
$(DOCKER_SYNCD_CAVM_RPC)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
|
$(DOCKER_SYNCD_CAVM_RPC)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
|
||||||
|
@ -20,6 +20,6 @@ $(DOCKER_SYNCD_BASE)_VERSION = 1.0.0
|
|||||||
$(DOCKER_SYNCD_BASE)_PACKAGE_NAME = syncd
|
$(DOCKER_SYNCD_BASE)_PACKAGE_NAME = syncd
|
||||||
|
|
||||||
$(DOCKER_SYNCD_CAVM)_CONTAINER_NAME = syncd
|
$(DOCKER_SYNCD_CAVM)_CONTAINER_NAME = syncd
|
||||||
$(DOCKER_SYNCD_CAVM)_RUN_OPT += --net=host --privileged -t
|
$(DOCKER_SYNCD_CAVM)_RUN_OPT += --privileged -t
|
||||||
$(DOCKER_SYNCD_CAVM)_RUN_OPT += -v /host/machine.conf:/etc/machine.conf
|
$(DOCKER_SYNCD_CAVM)_RUN_OPT += -v /host/machine.conf:/etc/machine.conf
|
||||||
$(DOCKER_SYNCD_CAVM)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
|
$(DOCKER_SYNCD_CAVM)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
|
||||||
|
@ -12,7 +12,7 @@ endif
|
|||||||
$(DOCKER_SYNCD_INVM_RPC)_CONTAINER_NAME = syncd
|
$(DOCKER_SYNCD_INVM_RPC)_CONTAINER_NAME = syncd
|
||||||
$(DOCKER_SYNCD_INVM_RPC)_VERSION = 1.0.0-rpc
|
$(DOCKER_SYNCD_INVM_RPC)_VERSION = 1.0.0-rpc
|
||||||
$(DOCKER_SYNCD_INVM_RPC)_PACKAGE_NAME = syncd
|
$(DOCKER_SYNCD_INVM_RPC)_PACKAGE_NAME = syncd
|
||||||
$(DOCKER_SYNCD_INVM_RPC)_RUN_OPT += --net=host --privileged -t
|
$(DOCKER_SYNCD_INVM_RPC)_RUN_OPT += --privileged -t
|
||||||
$(DOCKER_SYNCD_INVM_RPC)_RUN_OPT += -v /host/machine.conf:/etc/machine.conf
|
$(DOCKER_SYNCD_INVM_RPC)_RUN_OPT += -v /host/machine.conf:/etc/machine.conf
|
||||||
$(DOCKER_SYNCD_INVM_RPC)_RUN_OPT += -v /var/run/docker-syncd:/var/run/sswsyncd
|
$(DOCKER_SYNCD_INVM_RPC)_RUN_OPT += -v /var/run/docker-syncd:/var/run/sswsyncd
|
||||||
$(DOCKER_SYNCD_INVM_RPC)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
|
$(DOCKER_SYNCD_INVM_RPC)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
|
||||||
|
@ -8,7 +8,7 @@ SONIC_DOCKER_IMAGES += $(DOCKER_SAISERVER_MRVL)
|
|||||||
SONIC_STRETCH_DOCKERS += $(DOCKER_SAISERVER_MRVL)
|
SONIC_STRETCH_DOCKERS += $(DOCKER_SAISERVER_MRVL)
|
||||||
|
|
||||||
$(DOCKER_SAISERVER_MRVL)_CONTAINER_NAME = saiserver
|
$(DOCKER_SAISERVER_MRVL)_CONTAINER_NAME = saiserver
|
||||||
$(DOCKER_SAISERVER_MRVL)_RUN_OPT += --net=host --privileged -t
|
$(DOCKER_SAISERVER_MRVL)_RUN_OPT += --privileged -t
|
||||||
$(DOCKER_SAISERVER_MRVL)_RUN_OPT += -v /host/machine.conf:/etc/machine.conf
|
$(DOCKER_SAISERVER_MRVL)_RUN_OPT += -v /host/machine.conf:/etc/machine.conf
|
||||||
$(DOCKER_SAISERVER_MRVL)_RUN_OPT += -v /var/run/docker-saiserver:/var/run/sswsyncd
|
$(DOCKER_SAISERVER_MRVL)_RUN_OPT += -v /var/run/docker-saiserver:/var/run/sswsyncd
|
||||||
$(DOCKER_SAISERVER_MRVL)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
|
$(DOCKER_SAISERVER_MRVL)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
|
||||||
|
@ -20,7 +20,7 @@ endif
|
|||||||
$(DOCKER_SYNCD_MRVL_RPC)_CONTAINER_NAME = syncd
|
$(DOCKER_SYNCD_MRVL_RPC)_CONTAINER_NAME = syncd
|
||||||
$(DOCKER_SYNCD_MRVL_RPC)_VERSION = 1.0.0-rpc
|
$(DOCKER_SYNCD_MRVL_RPC)_VERSION = 1.0.0-rpc
|
||||||
$(DOCKER_SYNCD_MRVL_RPC)_PACKAGE_NAME = syncd
|
$(DOCKER_SYNCD_MRVL_RPC)_PACKAGE_NAME = syncd
|
||||||
$(DOCKER_SYNCD_MRVL_RPC)_RUN_OPT += --net=host --privileged -t
|
$(DOCKER_SYNCD_MRVL_RPC)_RUN_OPT += --privileged -t
|
||||||
$(DOCKER_SYNCD_MRVL_RPC)_RUN_OPT += -v /host/machine.conf:/etc/machine.conf
|
$(DOCKER_SYNCD_MRVL_RPC)_RUN_OPT += -v /host/machine.conf:/etc/machine.conf
|
||||||
$(DOCKER_SYNCD_MRVL_RPC)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
|
$(DOCKER_SYNCD_MRVL_RPC)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
|
||||||
$(DOCKER_SYNCD_MRVL_RPC)_RUN_OPT += -v /host/warmboot:/var/warmboot
|
$(DOCKER_SYNCD_MRVL_RPC)_RUN_OPT += -v /host/warmboot:/var/warmboot
|
||||||
|
@ -8,7 +8,7 @@ $(DOCKER_SAISERVER_MRVL)_LOAD_DOCKERS += $(DOCKER_CONFIG_ENGINE_BUSTER)
|
|||||||
SONIC_DOCKER_IMAGES += $(DOCKER_SAISERVER_MRVL)
|
SONIC_DOCKER_IMAGES += $(DOCKER_SAISERVER_MRVL)
|
||||||
|
|
||||||
$(DOCKER_SAISERVER_MRVL)_CONTAINER_NAME = saiserver
|
$(DOCKER_SAISERVER_MRVL)_CONTAINER_NAME = saiserver
|
||||||
$(DOCKER_SAISERVER_MRVL)_RUN_OPT += --net=host --privileged -t
|
$(DOCKER_SAISERVER_MRVL)_RUN_OPT += --privileged -t
|
||||||
$(DOCKER_SAISERVER_MRVL)_RUN_OPT += -v /host/machine.conf:/etc/machine.conf
|
$(DOCKER_SAISERVER_MRVL)_RUN_OPT += -v /host/machine.conf:/etc/machine.conf
|
||||||
$(DOCKER_SAISERVER_MRVL)_RUN_OPT += -v /var/run/docker-saiserver:/var/run/sswsyncd
|
$(DOCKER_SAISERVER_MRVL)_RUN_OPT += -v /var/run/docker-saiserver:/var/run/sswsyncd
|
||||||
$(DOCKER_SAISERVER_MRVL)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
|
$(DOCKER_SAISERVER_MRVL)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
|
||||||
|
@ -19,7 +19,7 @@ endif
|
|||||||
$(DOCKER_SYNCD_MRVL_RPC)_CONTAINER_NAME = syncd
|
$(DOCKER_SYNCD_MRVL_RPC)_CONTAINER_NAME = syncd
|
||||||
$(DOCKER_SYNCD_MRVL_RPC)_VERSION = 1.0.0-rpc
|
$(DOCKER_SYNCD_MRVL_RPC)_VERSION = 1.0.0-rpc
|
||||||
$(DOCKER_SYNCD_MRVL_RPC)_PACKAGE_NAME = syncd
|
$(DOCKER_SYNCD_MRVL_RPC)_PACKAGE_NAME = syncd
|
||||||
$(DOCKER_SYNCD_MRVL_RPC)_RUN_OPT += --net=host --privileged -t
|
$(DOCKER_SYNCD_MRVL_RPC)_RUN_OPT += --privileged -t
|
||||||
$(DOCKER_SYNCD_MRVL_RPC)_RUN_OPT += -v /host/machine.conf:/etc/machine.conf
|
$(DOCKER_SYNCD_MRVL_RPC)_RUN_OPT += -v /host/machine.conf:/etc/machine.conf
|
||||||
$(DOCKER_SYNCD_MRVL_RPC)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
|
$(DOCKER_SYNCD_MRVL_RPC)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
|
||||||
$(DOCKER_SYNCD_MRVL_RPC)_RUN_OPT += -v /host/warmboot:/var/warmboot
|
$(DOCKER_SYNCD_MRVL_RPC)_RUN_OPT += -v /host/warmboot:/var/warmboot
|
||||||
|
@ -20,7 +20,7 @@ endif
|
|||||||
$(DOCKER_SYNCD_MRVL_RPC)_CONTAINER_NAME = syncd
|
$(DOCKER_SYNCD_MRVL_RPC)_CONTAINER_NAME = syncd
|
||||||
$(DOCKER_SYNCD_MRVL_RPC)_VERSION = 1.0.0-rpc
|
$(DOCKER_SYNCD_MRVL_RPC)_VERSION = 1.0.0-rpc
|
||||||
$(DOCKER_SYNCD_MRVL_RPC)_PACKAGE_NAME = syncd
|
$(DOCKER_SYNCD_MRVL_RPC)_PACKAGE_NAME = syncd
|
||||||
$(DOCKER_SYNCD_MRVL_RPC)_RUN_OPT += --net=host --privileged -t
|
$(DOCKER_SYNCD_MRVL_RPC)_RUN_OPT += --privileged -t
|
||||||
$(DOCKER_SYNCD_MRVL_RPC)_RUN_OPT += -v /host/machine.conf:/etc/machine.conf
|
$(DOCKER_SYNCD_MRVL_RPC)_RUN_OPT += -v /host/machine.conf:/etc/machine.conf
|
||||||
$(DOCKER_SYNCD_MRVL_RPC)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
|
$(DOCKER_SYNCD_MRVL_RPC)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
|
||||||
$(DOCKER_SYNCD_MRVL_RPC)_RUN_OPT += -v /host/warmboot:/var/warmboot
|
$(DOCKER_SYNCD_MRVL_RPC)_RUN_OPT += -v /host/warmboot:/var/warmboot
|
||||||
|
@ -9,7 +9,7 @@ SONIC_DOCKER_IMAGES += $(DOCKER_SAISERVER_MLNX)
|
|||||||
SONIC_STRETCH_DOCKERS += $(DOCKER_SAISERVER_MLNX)
|
SONIC_STRETCH_DOCKERS += $(DOCKER_SAISERVER_MLNX)
|
||||||
|
|
||||||
$(DOCKER_SAISERVER_MLNX)_CONTAINER_NAME = saiserver
|
$(DOCKER_SAISERVER_MLNX)_CONTAINER_NAME = saiserver
|
||||||
$(DOCKER_SAISERVER_MLNX)_RUN_OPT += --net=host --privileged -t
|
$(DOCKER_SAISERVER_MLNX)_RUN_OPT += --privileged -t
|
||||||
$(DOCKER_SAISERVER_MLNX)_RUN_OPT += -v /host/machine.conf:/etc/machine.conf
|
$(DOCKER_SAISERVER_MLNX)_RUN_OPT += -v /host/machine.conf:/etc/machine.conf
|
||||||
$(DOCKER_SAISERVER_MLNX)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
|
$(DOCKER_SAISERVER_MLNX)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
|
||||||
$(DOCKER_SYNCD_BASE)_RUN_OPT += --tmpfs /run/criu
|
$(DOCKER_SYNCD_BASE)_RUN_OPT += --tmpfs /run/criu
|
||||||
|
@ -20,7 +20,7 @@ endif
|
|||||||
$(DOCKER_SYNCD_NEPHOS_RPC)_CONTAINER_NAME = syncd
|
$(DOCKER_SYNCD_NEPHOS_RPC)_CONTAINER_NAME = syncd
|
||||||
$(DOCKER_SYNCD_NEPHOS_RPC)_VERSION = 1.0.0-rpc
|
$(DOCKER_SYNCD_NEPHOS_RPC)_VERSION = 1.0.0-rpc
|
||||||
$(DOCKER_SYNCD_NEPHOS_RPC)_PACKAGE_NAME = syncd
|
$(DOCKER_SYNCD_NEPHOS_RPC)_PACKAGE_NAME = syncd
|
||||||
$(DOCKER_SYNCD_NEPHOS_RPC)_RUN_OPT += --net=host --privileged -t
|
$(DOCKER_SYNCD_NEPHOS_RPC)_RUN_OPT += --privileged -t
|
||||||
$(DOCKER_SYNCD_NEPHOS_RPC)_RUN_OPT += -v /host/machine.conf:/etc/machine.conf
|
$(DOCKER_SYNCD_NEPHOS_RPC)_RUN_OPT += -v /host/machine.conf:/etc/machine.conf
|
||||||
$(DOCKER_SYNCD_NEPHOS_RPC)_RUN_OPT += -v /host/warmboot:/var/warmboot
|
$(DOCKER_SYNCD_NEPHOS_RPC)_RUN_OPT += -v /host/warmboot:/var/warmboot
|
||||||
$(DOCKER_SYNCD_NEPHOS_RPC)_RUN_OPT += -v /var/run/docker-syncd:/var/run/sswsyncd
|
$(DOCKER_SYNCD_NEPHOS_RPC)_RUN_OPT += -v /var/run/docker-syncd:/var/run/sswsyncd
|
||||||
|
@ -24,6 +24,6 @@ SONIC_BUSTER_DBG_DOCKERS += $(DOCKER_GBSYNCD_BASE_DBG)
|
|||||||
SONIC_INSTALL_DOCKER_DBG_IMAGES += $(DOCKER_GBSYNCD_BASE_DBG)
|
SONIC_INSTALL_DOCKER_DBG_IMAGES += $(DOCKER_GBSYNCD_BASE_DBG)
|
||||||
|
|
||||||
$(DOCKER_GBSYNCD_BASE)_CONTAINER_NAME = gbsyncd
|
$(DOCKER_GBSYNCD_BASE)_CONTAINER_NAME = gbsyncd
|
||||||
$(DOCKER_GBSYNCD_BASE)_RUN_OPT += --net=host --privileged -t
|
$(DOCKER_GBSYNCD_BASE)_RUN_OPT += --privileged -t
|
||||||
$(DOCKER_GBSYNCD_BASE)_RUN_OPT += -v /host/machine.conf:/etc/machine.conf
|
$(DOCKER_GBSYNCD_BASE)_RUN_OPT += -v /host/machine.conf:/etc/machine.conf
|
||||||
$(DOCKER_GBSYNCD_BASE)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
|
$(DOCKER_GBSYNCD_BASE)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
|
||||||
|
Loading…
Reference in New Issue
Block a user