diff --git a/platform/p4/docker-sonic-p4/Dockerfile.template b/platform/p4/docker-sonic-p4/Dockerfile.template index 4f68259d02..357548591d 100644 --- a/platform/p4/docker-sonic-p4/Dockerfile.template +++ b/platform/p4/docker-sonic-p4/Dockerfile.template @@ -17,4 +17,10 @@ ADD rsyslog.conf /etc/rsyslog.conf RUN apt-get clean -y; apt-get autoclean -y; apt-get autoremove -y RUN rm -rf /deps +RUN sed -ri 's/^daemonize yes$/daemonize no/; \ + s/^logfile .*$/logfile ""/; \ + s/^# syslog-enabled no$/syslog-enabled no/; \ + s/^# unixsocket/unixsocket/ \ + ' /etc/redis/redis.conf + ENTRYPOINT /bin/bash