Move tcpdump into /usr/bin Otherwise it's impossible to run tcpdump due to a docker bug (#1195)

This commit is contained in:
pavel-shirshov 2017-11-29 16:36:26 -08:00 committed by GitHub
parent 51dfa1768d
commit d39dd396b5
No account linked to committer's email address

View File

@ -100,6 +100,10 @@ RUN mkdir /var/run/sshd \
COPY ["supervisord.conf", "/etc/supervisor/"]
COPY ["conf.d/supervisord.conf", "conf.d/sshd.conf", "conf.d/ptf_nn_agent.conf", "/etc/supervisor/conf.d/"]
# Move tcpdump into /usr/bin Otherwise it's impossible to run tcpdump due to a docker bug
RUN mv /usr/sbin/tcpdump /usr/bin/tcpdump
RUN ln -s /usr/bin/tcpdump /usr/sbin/tcpdump
RUN mkdir -p /var/log/supervisor
EXPOSE 22