From 3492b80c9062f074f59c65196ca97eccaf472303 Mon Sep 17 00:00:00 2001 From: Qi Luo Date: Sat, 12 Nov 2016 01:14:41 +0000 Subject: [PATCH] Change redis conf: listen on unix socket --- dockers/docker-database/Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dockers/docker-database/Dockerfile b/dockers/docker-database/Dockerfile index 2014cd8919f0..445ac44b12b0 100755 --- a/dockers/docker-database/Dockerfile +++ b/dockers/docker-database/Dockerfile @@ -10,8 +10,10 @@ RUN apt-get update && dpkg_apt /deps/redis-server_*.deb && \ apt-get clean -y && apt-get autoclean -y && apt-get autoremove -y -RUN sed -ri 's/^daemonize yes$/daemonize no/' /etc/redis/redis.conf \ - && sed -ri 's/^logfile .*$/logfile ""/' /etc/redis/redis.conf \ - && sed -ri 's/^# syslog-enabled no$/syslog-enabled no/' /etc/redis/redis.conf +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 service redis-server start