Add /host filesystem into teamd docker (#2235)

This commit is contained in:
pavel-shirshov 2018-11-09 16:14:03 -08:00 committed by GitHub
parent e69c1e9ebf
commit 61fe8fd2b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -3,6 +3,8 @@
rm -f /var/run/rsyslogd.pid
rm -f /var/run/teamd/*
mkdir -p /var/warmboot/teamd
supervisorctl start rsyslogd
supervisorctl start teammgrd

View File

@ -10,5 +10,6 @@ SONIC_INSTALL_DOCKER_IMAGES += $(DOCKER_TEAMD)
$(DOCKER_TEAMD)_CONTAINER_NAME = teamd
$(DOCKER_TEAMD)_RUN_OPT += --net=host --privileged -t
$(DOCKER_TEAMD)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
$(DOCKER_TEAMD)_RUN_OPT += -v /host/warmboot:/var/warmboot
$(DOCKER_TEAMD)_BASE_IMAGE_FILES += teamdctl:/usr/bin/teamdctl