带有密码的密码是123456 docker pull becivells/redis:passwd
FROM alpine:3.4
MAINTAINER becivells <[email protected]>
RUN apk --update add redis && \
rm -rf /var/cache/apk/*
#pass&remote
RUN sed -i "s/# requirepass foobared/requirepass 123456/g" /etc/redis.conf \
&& sed -i "s/^bind 127\.0\.0\.1.*/bind 0\.0\.0\.0/g" /etc/redis.conf \
&& sed -i "s/^daemonize yes/daemonize no/g" /etc/redis.conf
EXPOSE 6379
CMD ["/usr/bin/redis-server" , "/etc/redis.conf"]
Content type
Image
Digest
Size
3 MB
Last updated
about 10 years ago
docker pull becivells/redis